Last active
September 25, 2018 16:50
-
-
Save stepahn/7343d64ae501eb1d98124a0235c61f0e to your computer and use it in GitHub Desktop.
per directoy .zshrc.local
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
zshrclocal() { | |
if [[ "${PWD}" != "${HOME}" && -s "${PWD}/.zshrc.local" ]]; then | |
source "$PWD/.zshrc.local" | |
echo '(automatically sourced .zshrc.local)' | |
fi | |
} | |
chpwd_functions+=(zshrclocal) | |
zshrclocal |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment