aboutsummaryrefslogtreecommitdiffstats
path: root/_zsh
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2017-09-04 15:48:10 +0800
committerAaron LI <aly@aaronly.me>2017-09-04 15:48:10 +0800
commite70d42cc6cc549e08d653811d35847e2f7a89376 (patch)
tree43d7731f9bbfa9f1694c31c38fad90bc1021352e /_zsh
parent7ac78a1d95a55da50cd0efa956a8329c6ed6a50f (diff)
downloaddotfiles-e70d42cc6cc549e08d653811d35847e2f7a89376.tar.bz2
zsh: Update tmux aliases
Diffstat (limited to '_zsh')
-rw-r--r--_zsh/80-tmux.zsh13
-rw-r--r--_zsh/90-aliases.zsh2
2 files changed, 9 insertions, 6 deletions
diff --git a/_zsh/80-tmux.zsh b/_zsh/80-tmux.zsh
index ae0f1c5..9a4ad9c 100644
--- a/_zsh/80-tmux.zsh
+++ b/_zsh/80-tmux.zsh
@@ -24,11 +24,14 @@ if exists percol; then
fi
-alias ta='tmux attach -t'
-alias tl='tmux list-sessions'
-alias ts='tmux new-session -s'
-alias tkss='tmux kill-session -t'
-alias tksv='tmux kill-server'
+# Handy aliases
+if exists tmattach; then
+ alias tma=tmattach
+else
+ alias tma='tmux attach -t'
+fi
+alias tml='tmux list-sessions'
+alias tms='tmux new-session -s'
# vim: set ts=8 sw=4 tw=0 fenc=utf-8 ft=zsh: #
diff --git a/_zsh/90-aliases.zsh b/_zsh/90-aliases.zsh
index 7f41bc4..1c1ec06 100644
--- a/_zsh/90-aliases.zsh
+++ b/_zsh/90-aliases.zsh
@@ -24,7 +24,7 @@ alias lsa='ls -lah'
alias grep='grep --color=auto'
-# git
+# Git
alias gita='git add'
alias gitc='git commit'
alias gitd='git diff'