zsh/modules/localrc/init

11 lines
188 B
Plaintext
Raw Normal View History

2016-07-22 14:01:35 +00:00
#!/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