Skip to content

Latest commit

 

History

History
27 lines (21 loc) · 621 Bytes

Shell.md

File metadata and controls

27 lines (21 loc) · 621 Bytes

Shell (Tricks)

Project local ZSH configuration

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'