Put this snippet into your ~/.zshrc
:
function chpwd() {
if [ -r $PWD/.zsh_config ]; then
source $PWD/.zsh_config
else
source $HOME/.zshrc
fi
}
Then put a .zsh_config
in any directory you want. This is an example how to
define aliases to use qlot, project local
Common Lisp library configurations, with
Roswell:
alias ros='qlot exec ros -S .'
alias rove='qlot exec rove'