From 74c605c76ded58958e84ea7076a416dd3fbbcc9e Mon Sep 17 00:00:00 2001 From: Alpha Chen Date: Tue, 30 Jun 2015 08:24:51 -0700 Subject: [PATCH] Add function for ejecting mounts --- runcoms/zshrc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/runcoms/zshrc b/runcoms/zshrc index acf38fc..9e518ad 100644 --- a/runcoms/zshrc +++ b/runcoms/zshrc @@ -23,4 +23,6 @@ bindkey "\en" history-beginning-search-forward alias be='bundle exec' alias tat='tmux new-session -As `basename $PWD`' +function eject { command hdiutil eject `df | grep Volumes | grep "$@" | ruby -ne 'puts $_[/^[^ ]*/]'`; } + [[ -s "$HOME/.zshrc.local" ]] && . "$HOME/.zshrc.local"