From c341a4c5229c57ee1d5ec72a4281c526535a3904 Mon Sep 17 00:00:00 2001 From: Alpha Chen Date: Sat, 9 Jun 2018 16:23:47 +0000 Subject: [PATCH] move aliases to rc, add tmux alias for better integration w/direnv --- runcoms/zshenv | 2 -- runcoms/zshrc | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/runcoms/zshenv b/runcoms/zshenv index ccbf0a3..2b594b1 100644 --- a/runcoms/zshenv +++ b/runcoms/zshenv @@ -17,8 +17,6 @@ if command -v brew &> /dev/null; then source `brew --prefix`/share/chruby/chruby.sh source `brew --prefix`/share/chruby/auto.sh fi - - alias emacs="emacs --no-window" fi if command -v direnv &> /dev/null; then diff --git a/runcoms/zshrc b/runcoms/zshrc index d702263..a253008 100644 --- a/runcoms/zshrc +++ b/runcoms/zshrc @@ -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 plz=sudo 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 $_[/^[^ ]*/]'`; }