Add alias for virtualenv activation

This commit is contained in:
Collin Stedman 2016-10-23 15:14:54 -04:00
parent f94d4e6a40
commit 8048d1e951

View File

@ -5,3 +5,5 @@ function virtualenv_prompt_info(){
# disables prompt mangling in virtual_env/bin/activate # disables prompt mangling in virtual_env/bin/activate
export VIRTUAL_ENV_DISABLE_PROMPT=1 export VIRTUAL_ENV_DISABLE_PROMPT=1
alias activate='source $(find . -maxdepth 3 -name "activate") 2> /dev/null || echo "No virtualenv detected"'