From 925d13a8db97b0e43bdf8b92e15f592b4870b4c3 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 11 Apr 2014 03:30:35 -0400 Subject: [PATCH] Clean up aliases I removed the shortcuts for ruby/python. rb and py are now aliases for rbenv and pyenv. --- zsh/aliases | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/zsh/aliases b/zsh/aliases index 1af6fd0f..90e173f6 100644 --- a/zsh/aliases +++ b/zsh/aliases @@ -13,7 +13,7 @@ if command_exists 'git'; then fi # Tmux -command_exists 'tmux' && alias t='tmux' +command_exists 'tmux' && alias t='tmux -CC' # transmission-remote if command_exists 'transmission-remote'; then @@ -21,21 +21,16 @@ if command_exists 'transmission-remote'; then alias btl="bt -l" alias bta="bt --add" - function btr { - bt -t$1 -r - } + function btr { bt -t$1 -r } + function bts { bt -t$1 -S } fi alias va='vagrant' # Interpreters -command_exists "ruby" && alias rb='ruby' -command_exists "rbenv" && alias re='rbenv' -command_exists "python" && alias py='python' -command_exists "node" && alias js='node' -if [ -e /Applications/love.app ]; then - alias love="/Applications/love.app/Contents/MacOS/love" -fi +command_exists "rbenv" && alias rb='rbenv' +command_exists "pyenv" && alias py='pyenv' +[ -e /Applications/love.app ] && alias love="/Applications/love.app/Contents/MacOS/love" # Shell conveniences alias l='ls -1' @@ -75,9 +70,7 @@ fi alias v="vim" # Make a directory and change to it -function mkd { - mkdir "$@" && cd "$@" -} +function mkd { mkdir "$@" && cd "$@" } alias reload='exec $SHELL -l' alias c='clear'