Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've installed bash_completion and set my $CDPATH. I can successfully cd to subdirectories of those in my $CDPATH. What I'd like to do from here is for tab completion to bring up files in those subdirectories, such that for a file /usr/local/foo/bar, and my $CDPATH containing /usr/local/foo, I'd like to (e.g.) enter vi b<TAB> and have bar come up. Is that possible?

share|improve this question
Did you ever find an answer to this? I'm currently looking myself. – Eric M. Oct 11 '14 at 19:04
No luck. I've pretty well given up on it. – Kit Peters Oct 13 '14 at 0:54

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.