-
-
Save devth/1153304 to your computer and use it in GitHub Desktop.
zsh chpwd example
This file contains hidden or 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
my_chpwd() | |
{ | |
if [[ -s "$PWD/.set_env" ]] ; then | |
source "$PWD/.set_env" | |
echo '(automatically sourced .set_env)' | |
fi | |
} | |
add-zsh-hook chpwd my_chpwd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment