11 lines
188 B
Bash
Executable file
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
|