This one time, at band camp, Taryn East wrote: >If I have a file called foobar and a directory called foobaz and I type >"cd foo" and hit <tab>... > >why does tab-completion offer both choices? > >AFAIK it makes no sense to cd to a file - so I was wondering why >tab-completion isn't intelligent enough to just not bother with files.
You're using bash? zsh's completion is already smart like that and knows about what files a command takes, so tab completion of cds arguments only offers directory names. zsh leads the universe in tab completion technology! -- [EMAIL PROTECTED] http://spacepants.org/jaq.gpg -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
