I'm trying to figure out if there's a way I can get $CDPATH working for every command-line tool. At the moment, I have a directory in my homedir that's called src/ which contains all of my projects. This way I can type cd <foo> from any directory, as opposed to having to type cd ~/src/foo every time.I'd like to be able to do something like vim foo/bar.c and have bash automatically figure out what I mean. Additionally, I'd like to be able to go vim foo/<Tab> and have it give me suggestions for what I want to edit through autocomplete, and I'd also like to be able to go vim fo<Tab> and have it autocomplete the rest of foo for me.Is there a pre-existing autocomplete script for something like this? I've tried making one of my own but it doesn't do quite what I want. If possible, I'd also like for it to autocomplete subdirectories like foo/baz/thing.c.Thanks!
Something like $CDPATH that works for all bash commands
bash;command line;autocomplete