4 ms·
Show HN: A bash script to easily traverse directories
- pwg 14y agoNote, if you are using Bash, then the $CDPATH variable, already built in to Bash, will let you do everything your script provides.
- Vecrios 14y agoThe CDPATH variable tends to be somewhat ambiguous, to me at least. Appreciate for your comment though!
- pwg 14y agoThe trick is you have to set it one level up from where you want the expansions to appear. So to allow "cd Downloads" to find /home/user/Downloads, you need to set CDPATH to /home/user Now all directorys in /home/user/* become match points for "cd dirname".