You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

51 lines
664 B

# 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
rvm "$@"
}
# Setup NVM
load_nvm () {
unset -f node npm yarn
source $(brew --prefix nvm)/nvm.sh
}
nvm () {
load_nvm
nvm "$@"
}
node () {
load_nvm
node "$@"
}
npm () {
load_nvm
npm "$@"
}
yarn () {
load_nvm
yarn "$@"
}
# Init chef
chef () {
eval "$(chef shell-init zsh)"
chef "$@"
}