1. It may help if we could overload CDPATH (either as it is, or via a
shopt for backward compatibility reasons) so that Filename Completion
consults CDPATH also.
2. Use case.
My CDPATH is: '.:~'
I'm sitting in /tmp dir, and would like to issue an 'ls' or 'rm' on ~/
foo/file-with-a-very-long-name without really saying...
What I would rather like to say is...
Currently, the only way I can accomplish the above is by first doing a
... which I think is very... boring? :-)
3. If overloading CDPATH with this additional semantics (even via the
shopt route let's say) is a big deal (for, I'm no Unix/shell guru),
may I propose a new bash variable LSPATH/NAMEPATH/NMPATH/etc, which is
consulted during tab-assisted filename completion?
You better post this to the bug-...@gnu.org mailing linst.