Named Directories

Look at this:

% zsh -f
zsh% PS1="%~%% "
~% hash -d zsh="/usr/src/zsh"
~% cd ~zsh
~zsh% pwd
/usr/src/zsh

Nice, isn't it?
This way you can give names to directories, that you visit often. It even looks nice in your prompt.

This isn't stricly an alias, but you can think of them as aliases.

 
examples/aliasdirs.txt · Last modified: 2010/01/05 09:20 (external edit)