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

Alpha Chen 7 years ago committed by Alpha Chen
parent 9043fe2ca9
commit ba8e1469fc

@ -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