Skip to content

Instantly share code, notes, and snippets.

@mohangk
Forked from wayneeseguin/gist:774785
Created July 2, 2013 08:39
Show Gist options
  • Save mohangk/5907671 to your computer and use it in GitHub Desktop.
Save mohangk/5907671 to your computer and use it in GitHub Desktop.
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