My code is all located in the following directory on my computer /a/b/c/d/e/myCode. I got annoyed of typing make /a/b/c/d/e/myCode/project1 when I wanted to compile project1. To fix this I created a function in my bashrc that looks as follows:
function make_project { make /a/b/c/d/e/myCode/$1; }
Then I call it like this:
make_project project1
This works fine. The only problem with this is that I don't have autocompletion for project1. So if I have a project with a complicated name like my_complicatedly_named_project I will need to type the whole name in. Is there any way for bash to know that the arguments are directories in /a/b/c/d/e/myCode/ and it could autocomplete appropriately?