Set static named directories
~/.zshrc in your favorite editor and add the hash commands one after one like you did in your example, e. g.
hash -d foo=/etc
hash -d zshdoc=/usr/share/doc/zsh-common
and so on. The file
.zshrc in your home directory will be loaded every time you start zsh.
You can also put your alias definitions there, just the same way. However, it is more useful to put aliases in a separate file, e. g.
~/.zshaliases and then source this file from
.zshrc. So, add this to
and then add your alias definitions to
~/.zshaliases like this:
alias ll="ls -l"
alias la="ls -la"
These are just examples of course. The reason to put those aliases in a separate file is, that you can edit it with your favorite editor and then simply reload all aliases by issuing the command
Personally I like most the
zshall manual page which you can open by running the command
man zshall. It is very complete.
Other good sources for zsh documentation are: