11 lines
188 B
Plaintext
11 lines
188 B
Plaintext
![]() |
#!/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
|