Browse Source

Use virtualenvwrapper_lazy script

master
Brett Langdon 9 years ago
parent
commit
cd97fef5e6
No known key found for this signature in database GPG Key ID: A2ECAB73CE12147F
2 changed files with 4 additions and 17 deletions
  1. +4
    -0
      zshrc.d/bootstrap.zsh
  2. +0
    -17
      zshrc.d/lib/functions.zsh

+ 4
- 0
zshrc.d/bootstrap.zsh View File

@ -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

+ 0
- 17
zshrc.d/lib/functions.zsh View File

@ -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


Loading…
Cancel
Save