Created
January 11, 2011 17:45
-
-
Save wayneeseguin/774785 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 | |
} | |
chpwd_functions=( "${chpwd_functions[@]}" my_chpwd ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment