From 8048d1e95154cb99991436a2b3c9f6ec38f795ca Mon Sep 17 00:00:00 2001 From: Collin Stedman Date: Sun, 23 Oct 2016 15:14:54 -0400 Subject: [PATCH] Add alias for virtualenv activation --- plugins/virtualenv/virtualenv.plugin.zsh | 2 ++ 1 file changed, 2 insertions(+) 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"'