Better tmux start command
From `man tmux` The -A flag makes new-session behave like attach-session if session-name already exists; in the case, -D behaves like -d to attach-session.
This commit is contained in:
parent
8ed71cb139
commit
a346261b61
1 changed files with 1 additions and 1 deletions
2
aliases
2
aliases
|
@ -75,7 +75,7 @@ alias m="more"
|
||||||
alias md="cd ~/dotfiles > /dev/null 2>&1; make; cd -1 > /dev/null 2>&1"
|
alias md="cd ~/dotfiles > /dev/null 2>&1; make; cd -1 > /dev/null 2>&1"
|
||||||
alias mf="mkdir"
|
alias mf="mkdir"
|
||||||
alias ms="tmux -S /tmp/pair && chmod 777 /tmp/pair"
|
alias ms="tmux -S /tmp/pair && chmod 777 /tmp/pair"
|
||||||
alias mw="tmux attach-session -t work || tmux new-session -s work"
|
alias mw="tmux new-session -A -s work"
|
||||||
alias p="sudo"
|
alias p="sudo"
|
||||||
alias pf="port-forward"
|
alias pf="port-forward"
|
||||||
alias r="ssh"
|
alias r="ssh"
|
||||||
|
|
Loading…
Reference in a new issue