Switching out rbenv for chruby

master
Dustin Swan 12 years ago
parent 6ba0765bd2
commit 3918e60746

17
zshrc

@ -7,9 +7,13 @@
alias vi=vim alias vi=vim
alias tmux="tmux -2" alias tmux="tmux -2"
export EDITOR=vim export EDITOR=vim
export BROWSER=open export BROWSER=open
[[ -s luakit ]] && export BROWSER=luakit [[ -s luakit ]] && export BROWSER=luakit
alias browse='open'
[[ -s luakit ]] && alias browse='luakit'
# IOCOM stuff # IOCOM stuff
export P4USER=dswan export P4USER=dswan
export P4PORT="humu.insors.net:1666" export P4PORT="humu.insors.net:1666"
@ -20,14 +24,19 @@ alias dswan="ssh root@dswan.insors.net"
alias webdev='ssh -t root@webdev.insors.net "cd /var/www/html; /bin/bash -i"' alias webdev='ssh -t root@webdev.insors.net "cd /var/www/html; /bin/bash -i"'
alias sprites="pushd ~/smartsprites; ./smartsprites.sh --root-dir-path /opt/iocom/user/webclient/; popd; p4 edit /opt/iocom/user/webclient/css/iocom-sprite.css" alias sprites="pushd ~/smartsprites; ./smartsprites.sh --root-dir-path /opt/iocom/user/webclient/; popd; p4 edit /opt/iocom/user/webclient/css/iocom-sprite.css"
alias browse='luakit' # TODO open on mac
export PATH=/usr/local/bin:/usr/local/sbin:$PATH # Homebrew export PATH=/usr/local/bin:/usr/local/sbin:$PATH # Homebrew
export PATH=/Applications/Postgres.app/Contents/MacOS/bin:$PATH # Postgres export PATH=/Applications/Postgres.app/Contents/MacOS/bin:$PATH # Postgres
export PATH=/usr/local/share/python:$PATH export PATH=/usr/local/share/python:$PATH
export PATH=$HOME/Library/Haskell/bin:$PATH # Haskell export PATH=$HOME/Library/Haskell/bin:$PATH # Haskell
export PATH=$HOME/dotfiles/bin:$PATH # Dotfiles bin export PATH=$HOME/dotfiles/bin:$PATH # Dotfiles bin
export PATH=$HOME/.rbenv/bin:$PATH # rbenv
export PATH=/usr/local/share/npm/bin:$PATH # npm export PATH=/usr/local/share/npm/bin:$PATH # npm
export NODE_PATH=/usr/local/lib/node export NODE_PATH=/usr/local/lib/node
eval "$(rbenv init -)"
# Chruby
source '/usr/local/share/chruby/chruby.sh'
source '/usr/local/share/chruby/auto.sh'
if [[ -e /usr/share/chruby ]]; then
source /usr/local/share/chruby/chruby.sh
source /usr/local/share/chruby/auto.sh
chruby $(cat ~/.ruby-version)
fi

Loading…
Cancel
Save