Redo tmux aliases
This commit is contained in:
parent
e0c614e8a8
commit
d2bdab4469
|
@ -99,17 +99,17 @@ 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 ls'
|
||||||
|
alias ta='tmux attach'
|
||||||
# Start new session or create a grouped session so I'm not simply watching
|
|
||||||
# the same session in both windows.
|
|
||||||
ta() {tmux new -s $1 || tmux new -t $1 -s $1-2 || tmux attach -t $1-2;}
|
|
||||||
|
|
||||||
# New instance attached to old session
|
# New instance attached to old session
|
||||||
alias tn='tmux new-session -t $(hostname)'
|
alias tn='tmux new-session -t $(hostname)'
|
||||||
|
|
||||||
|
# Start new session or create a grouped session so I'm not simply watching
|
||||||
|
# the same session in both windows.
|
||||||
|
tdup() {tmux new -s $1 || tmux new -t $1 -s $1-2 || tmux attach -t $1-2;}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if is-mac; then
|
if is-mac; then
|
||||||
# alias open='open'
|
|
||||||
alias ls="ls -G"
|
alias ls="ls -G"
|
||||||
|
|
||||||
alias c11='clang++ -std=c++11 -stdlib=libc++'
|
alias c11='clang++ -std=c++11 -stdlib=libc++'
|
||||||
|
|
Loading…
Reference in a new issue