move chruby to rc, add .dotfiles/bin

main
Alpha Chen 8 years ago committed by Alpha Chen
parent 37c58e1d21
commit dcf4aefe45
Signed by: alpha
SSH Key Fingerprint: SHA256:3fOT8fiYQG/aK9ntivV3Bqtg8AYQ7q4nV6ZgihOA20g

@ -10,13 +10,12 @@ if [[ ( "$SHLVL" -eq 1 && ! -o LOGIN ) && -s "${ZDOTDIR:-$HOME}/.zprofile" ]]; t
source "${ZDOTDIR:-$HOME}/.zprofile"
fi
export PATH="$HOME/bin:$HOME/.cargo/bin:/usr/local/bin:$PATH"
export PATH="$HOME/.dotfiles/bin:$HOME/.cargo/bin:/usr/local/bin:$PATH"
if command -v brew &> /dev/null; then
if [[ -s `brew --prefix`/share/chruby/chruby.sh ]]; then
source `brew --prefix`/share/chruby/chruby.sh
source `brew --prefix`/share/chruby/auto.sh
chruby ruby
fi
alias emacs="emacs --no-window"

@ -27,4 +27,8 @@ alias plz='sudo'
function eject { command hdiutil eject `df | grep Volumes | grep -i "$@" | ruby -ne 'puts $_[/^[^ ]*/]'`; }
if type chruby > /dev/null; then
chruby ruby
fi
[[ -s "$HOME/.zshrc.local" ]] && . "$HOME/.zshrc.local"

Loading…
Cancel
Save