# 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 "$@" } # Upgrade functions update_spacemacs () { cd ~/dotfiles git subtree pull --prefix emacs.d --squash --message "Upgrade spacemacs" https://github.com/syl20bnr/spacemacs master popd } update_oh_my_zsh () { cd ~/dotfiles git subtree pull --prefix zshrc.d/oh-my-zsh --squash --message "Upgrade oh-my-zsh" https://github.com/robbyrussell/oh-my-zsh master popd }