zsh/modules/localrc/init
Alexander Gehrke (crater2150) 05f6bf7007 Various small additions
2016-07-22 16:01:35 +02:00

11 lines
188 B
Bash
Executable file

#!/bin/zsh
load_localrc() {
local dir=${1:-$PWD}
if [[ -f $dir/.lzshrc ]]; then source $dir/.lzshrc
elif [[ "$dir" != "/" ]]; then load_localrc ${dir:h}
fi
}
chpwd_hook load_localrc