Skip to content

Instantly share code, notes, and snippets.

@dmulter
Created August 31, 2018 15:07
Show Gist options
  • Save dmulter/773df0b3d3545760662b1314d644c640 to your computer and use it in GitHub Desktop.
Save dmulter/773df0b3d3545760662b1314d644c640 to your computer and use it in GitHub Desktop.
function cd {
builtin cd "$@"
if [ -d ".virtualenv" ] ; then
source .virtualenv/bin/activate
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment