From c1d7982c61af0146cb955ce616fd80e490110a1b Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 21 Jul 2014 03:07:34 -0400 Subject: [PATCH] Short function syntax --- zsh/aliases | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/zsh/aliases b/zsh/aliases index 66d6f6f1..b2f81d20 100644 --- a/zsh/aliases +++ b/zsh/aliases @@ -8,7 +8,7 @@ if command_exists 'git'; then alias gtl='git describe --tags --abbrev=0' alias gpb='git push origin' - function git-new-root { + git-new-root() { git filter-branch --subdirectory-filter "$@" --prune-empty -- --all } # find oh-my-zsh's here: ~/.oh-my-zsh/plugins/git/git.plugin.zsh @@ -25,7 +25,7 @@ elif is_mac; then # Open file in emacs server; must be running! alias e="emacsclient -n" - function o { + o() { if [ $# -eq 0 ]; then open . else @@ -39,12 +39,14 @@ command_exists 'tmux' && alias t='tmux -CC' # transmission-remote if command_exists 'transmission-remote'; then + alias bt="transmission-remote server" alias btl="bt -l" alias bta="bt --add" - function btr { bt -t$1 -r } - function bts { bt -t$1 -S } + btr() { bt -t$1 -r } + bts() { bt -t$1 -S } + fi alias va='vagrant'