in reply to Appending in a switch case statement
export CDPATH=.:~:~/www:~/tmp
you get the desired behaviour with cd:
[~]$ cd bin /home/ikegami/bin [~/bin]$ cd lib /home/ikegami/lib [~/lib]$ cd example.com /home/ikegami/www/example.com [~/www/adaelis.com]$
It'll save you from writing a bash parser (although a half-assed one should work).
|
|---|