move chruby to rc, add .dotfiles/bin

Alpha Chen 8 years ago committed by Alpha Chen
parent bf4eef892b
commit f1b9fe3f1f
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" source "${ZDOTDIR:-$HOME}/.zprofile"
fi 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 command -v brew &> /dev/null; then
if [[ -s `brew --prefix`/share/chruby/chruby.sh ]]; then if [[ -s `brew --prefix`/share/chruby/chruby.sh ]]; then
source `brew --prefix`/share/chruby/chruby.sh source `brew --prefix`/share/chruby/chruby.sh
source `brew --prefix`/share/chruby/auto.sh source `brew --prefix`/share/chruby/auto.sh
chruby ruby
fi fi
alias emacs="emacs --no-window" 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 $_[/^[^ ]*/]'`; } 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" [[ -s "$HOME/.zshrc.local" ]] && . "$HOME/.zshrc.local"

Loading…
Cancel
Save