summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2015-05-23 20:36:54 -0400
committerJune McEnroe <june@causal.agency>2015-05-23 20:36:54 -0400
commitb591b110069e466d5a67ac540d8d76986044653b (patch)
tree88179bb616198c931475a9526842621b12974a6b
parentMore tmux configuration (diff)
downloadsrc-b591b110069e466d5a67ac540d8d76986044653b.tar.gz
src-b591b110069e466d5a67ac540d8d76986044653b.zip
Add tmux shortcut functions
Diffstat (limited to '')
-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'