summary refs log tree commit diff
path: root/.zshrc
diff options
context:
space:
mode:
authorJune McEnroe <programble@gmail.com>2015-05-23 20:36:54 -0400
committerJune McEnroe <programble@gmail.com>2015-05-23 20:36:54 -0400
commitff106acb14283ee03fbab862f6bb9bb32b383767 (patch)
tree3fa35c0942090a97bba6143f006c1007454f82db /.zshrc
parentMore tmux configuration (diff)
downloadsrc-ff106acb14283ee03fbab862f6bb9bb32b383767.tar.gz
src-ff106acb14283ee03fbab862f6bb9bb32b383767.zip
Add tmux shortcut functions
Diffstat (limited to '.zshrc')
-rw-r--r--.zshrc3
1 files changed, 3 insertions, 0 deletions
diff --git a/.zshrc b/.zshrc
index 551033da..534e1032 100644
--- a/.zshrc
+++ b/.zshrc
@@ -72,6 +72,9 @@ osx && alias rm='rm -v'
 osx || alias gvim='gvim 2> /dev/null'
 osx && alias gvim=mvim
 
+tn() { [ -n "$1" ] && tmux new -s "$1" || tmux new }
+ta() { [ -n "$1" ] && tmux attach -t "$1" || tmux attach }
+
 alias g=git
 alias ga='git add'
 alias gb='git branch'