diff --git a/plugins/virtualenv/virtualenv.plugin.zsh b/plugins/virtualenv/virtualenv.plugin.zsh index e250eb63..876b1e8f 100644 --- a/plugins/virtualenv/virtualenv.plugin.zsh +++ b/plugins/virtualenv/virtualenv.plugin.zsh @@ -5,3 +5,5 @@ function virtualenv_prompt_info(){ # disables prompt mangling in virtual_env/bin/activate export VIRTUAL_ENV_DISABLE_PROMPT=1 + +alias activate='source $(find . -maxdepth 3 -name "activate") 2> /dev/null || echo "No virtualenv detected"'