This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Configure Bash to only list directories for completion on "cd" command?
- To: "'cygwin at cygwin dot com'" <cygwin at cygwin dot com>
- Subject: Configure Bash to only list directories for completion on "cd" command?
- From: "Karr, David" <david dot karr at cacheflow dot com>
- Date: Mon, 4 Jun 2001 08:35:42 -0700
This morning I noticed the information about how to configure Bash's
completion facilities.
I was able to configure completion on the "cd" command so that if I'm in one
directory which has a directory named "java" and a file named "joe.lib", and
I type "cd j" and TAB, it will just fill in "java", and ignore "joe.lib".
I did this with "complete -o dirnames -d cd".
However, when I configure Bash to show me the POSSIBLE completions, with
either Alt-? or setting "show-all-if-ambiguous" to "on", then it still lists
"joe.lib" in the possible completions.
Is it possible to configure the completions list so it will only show the
possibilities it will actually use?
--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple