Rewrite tmux aliases

This commit is contained in:
Henrik Lissner 2015-10-03 01:16:21 -04:00
parent 91e7b5904c
commit 6e4ece0975

View file

@ -98,15 +98,17 @@ alias gre='git remote'
if is-callable 'tmux'; then if is-callable 'tmux'; then
alias t='tmux' alias t='tmux'
alias ts='tmux send-keys' alias ts='tmux send-keys'
alias tl='tmux ls' alias tl='tmux list-sessions'
alias ta='tmux attach' alias ta='tmux attach'
# New instance attached to old session if [ -n $TMUX ]; then
alias tn='tmux new-session -t $(hostname)' # Detach all other clients to this session
alias takeover='tmux detach -a'
fi
# Start new session or create a grouped session so I'm not simply watching # Start new session or create a grouped session so I'm not simply watching
# the same session in both windows. # the same session in both windows.
tdup() {tmux new -s $1 || tmux new -t $1 -s $1-2 || tmux attach -t $1-2;} tdup() {tmux new-session -t $1}
fi fi
if is-mac; then if is-mac; then