|
|
@ -39,16 +39,22 @@ alias stayawake="caffeinate -s -d -i" |
|
|
export PATH="/usr/local/heroku/bin:$PATH" |
|
|
export PATH="/usr/local/heroku/bin:$PATH" |
|
|
|
|
|
|
|
|
# Setup RVM |
|
|
# Setup RVM |
|
|
export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting |
|
|
|
|
|
|
|
|
export PATH="$HOME/.rvm/bin:$PATH" # Add RVM to PATH for scripting |
|
|
export rvm_project_rvmrc=1 |
|
|
export rvm_project_rvmrc=1 |
|
|
test -e ${HOME}/.rvm/scripts/rvm && source ${HOME}/.rvm/scripts/rvm |
|
|
test -e ${HOME}/.rvm/scripts/rvm && source ${HOME}/.rvm/scripts/rvm |
|
|
|
|
|
|
|
|
# Check if dinghy is installed, and run shellinit if it exists |
|
|
# Check if dinghy is installed, and run shellinit if it exists |
|
|
which dinghy 2>1 >/dev/null && eval $(dinghy shellinit) |
|
|
|
|
|
|
|
|
which dinghy 2>&1 >/dev/null && eval $(dinghy shellinit) |
|
|
|
|
|
|
|
|
# Setup NVM |
|
|
# Setup NVM |
|
|
export NVM_DIR=~/.nvm |
|
|
export NVM_DIR=~/.nvm |
|
|
test -e $(brew --prefix nvm)/nvm.sh && source $(brew --prefix nvm)/nvm.sh |
|
|
test -e $(brew --prefix nvm)/nvm.sh && source $(brew --prefix nvm)/nvm.sh |
|
|
|
|
|
function chpwd() { |
|
|
|
|
|
# If there is an `.nvmrc` file then run `nvm use` |
|
|
|
|
|
if [ -r $PWD/.nvmrc ]; then |
|
|
|
|
|
nvm use |
|
|
|
|
|
fi |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
# Setup iterm2 shell integration |
|
|
# Setup iterm2 shell integration |
|
|
test -e ${HOME}/.iterm2_shell_integration.zsh && source ${HOME}/.iterm2_shell_integration.zsh |
|
|
test -e ${HOME}/.iterm2_shell_integration.zsh && source ${HOME}/.iterm2_shell_integration.zsh |