Skip to content

Instantly share code, notes, and snippets.

@wayneeseguin
Created January 11, 2011 17:45
Show Gist options
  • Save wayneeseguin/774785 to your computer and use it in GitHub Desktop.
Save wayneeseguin/774785 to your computer and use it in GitHub Desktop.
zsh chpwd example
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