move aliases to rc, add tmux alias for better integration w/direnv

main
Alpha Chen 7 years ago committed by Alpha Chen
parent 8639cc1872
commit dd3082a77f
Signed by: alpha
SSH Key Fingerprint: SHA256:3fOT8fiYQG/aK9ntivV3Bqtg8AYQ7q4nV6ZgihOA20g

@ -17,8 +17,6 @@ if command -v brew &> /dev/null; 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
fi fi
alias emacs="emacs --no-window"
fi fi
if command -v direnv &> /dev/null; then if command -v direnv &> /dev/null; then

@ -25,6 +25,8 @@ alias be='bundle exec'
alias tat='tmux new-session -As `basename $PWD | ruby -e "puts ARGF.read.strip.downcase.gsub(/[^\w]+/, ?-)"`' alias tat='tmux new-session -As `basename $PWD | ruby -e "puts ARGF.read.strip.downcase.gsub(/[^\w]+/, ?-)"`'
alias plz=sudo alias plz=sudo
alias ls=exa alias ls=exa
alias emacs="emacs --no-window"
alias tmux="direnv exec / tmux"
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 $_[/^[^ ]*/]'`; }

Loading…
Cancel
Save