Take the 2-minute tour ×  Is it possible to write a symbolic
link such that no matter where am I on the file system, I can
use for example project to point the directory home/me/project?
I would like to use commands like cd project, nano
project/file1.tex and so on. Do I have to write a symbolic link
to all of my directories?  share|improve this question  2
Answers 2  up vote 14 down vote accepted  Most shells have a
CDPATH variable that cd can lookup for directories to change to
in the same way that executables are searched in $PATH.  So if
you add your symlinks in a ~/projects directory and do
CDPATH=~/projects, you'll be able to do cd foo to go in
~/projects/foo  With zsh, if $var contains a path you can do cd
~var to cd to that path. The useful part of that is when your
prompt has %~ which then reflects it in your prompt:  $
proj1=/usr/local proj2=/etc/apache2 $ PS1='%~$ ' $ cd ~proj1
~proj1$ cd ~proj2/sites-enabled  With setopt cdablevars, you can
also do cd proj1 instead of cd ~proj1.  share|improve thi