From e70d42cc6cc549e08d653811d35847e2f7a89376 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Mon, 4 Sep 2017 15:48:10 +0800 Subject: zsh: Update tmux aliases --- _zsh/80-tmux.zsh | 13 ++++++++----- _zsh/90-aliases.zsh | 2 +- 2 files changed, 9 insertions(+), 6 deletions(-) (limited to '_zsh') 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' -- cgit v1.2.2