Named Directories

Look at this:

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

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 strictly an alias, but you can think of them as aliases.

There's also a more advanced feature for Dynamic named directories using the zsh_directory_name function.

examples/aliasdirs.txt · Last modified: 2015/12/08 07:47 by spamkiller