In a bash, is there a way to combine
CDPATH, that is, to go to a subdirectory of a
CDPATH element without typing
cd before the dir name?
For example, if i have these directories:
~$ shopt -s autocd ~$ export CDPATH=":~/Leute:~/Dinge"
then i can do
and end up in the ~/Leute directory (that is the
and i can do
~/Leute$ cd Auto
and end up in ~/Dinge/Auto (the
but combining the two seems not to work.
For example starting in ~/Leute i can’t jump to ~/Dinge/Auto without an explicit
~/Leute$ Auto bash: Auto: Command not found...
Is there a reason for this? Or is there something else needed to make this work?