From cd97fef5e643d23f33f94b19f18c78862a638d60 Mon Sep 17 00:00:00 2001 From: brettlangdon Date: Tue, 3 Jan 2017 11:17:39 -0500 Subject: [PATCH] Use virtualenvwrapper_lazy script --- zshrc.d/bootstrap.zsh | 4 ++++ zshrc.d/lib/functions.zsh | 17 ----------------- 2 files changed, 4 insertions(+), 17 deletions(-) diff --git a/zshrc.d/bootstrap.zsh b/zshrc.d/bootstrap.zsh index df9578f..a8c7058 100644 --- a/zshrc.d/bootstrap.zsh +++ b/zshrc.d/bootstrap.zsh @@ -9,3 +9,7 @@ source ${ZSH_DIR}/.env.zsh # Load in oh-my-zsh source ${ZSH}/oh-my-zsh.sh + +# Load virtualenvwrapper if it is exists +# DEV: Load the lazy script for faster load times +test -x /usr/local/bin/virtualenvwrapper_lazy.sh && source /usr/local/bin/virtualenvwrapper_lazy.sh diff --git a/zshrc.d/lib/functions.zsh b/zshrc.d/lib/functions.zsh index a9c8c78..c09bbdd 100644 --- a/zshrc.d/lib/functions.zsh +++ b/zshrc.d/lib/functions.zsh @@ -1,20 +1,3 @@ -# Setup Python/Virtualenv -load_virtualenv () { - source /usr/local/bin/virtualenvwrapper.sh -} -workon () { - load_virtualenv - workon "$@" -} -mkvirtualenv () { - load_virtualenv - mkvirtualenv "$@" -} -rmvirtualenv () { - load_virtualenv - rmvirtualenv "$@" -} - # Setup RVM rvm () { source ${HOME}/.rvm/scripts/rvm