add tmux default launch
This commit is contained in:
parent
7ebce5c384
commit
2bcea02c91
@ -19,8 +19,9 @@ zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}
|
||||
|
||||
#launch tmux on ssh connection
|
||||
|
||||
if [[ -n "$PS1" ]] && [[ -z "$TMUX" ]] && [[ -n "$SSH_CONNECTION" ]]; then
|
||||
tmux attach-session -t ssh_tmux || tmux new-session -s ssh_tmux
|
||||
##if [[ -n "$PS1" ]] && [[ -z "$TMUX" ]] && [[ -n "$SSH_CONNECTION" ]]; then
|
||||
if [[ -n "$PS1" ]] && [[ -z "$TMUX" ]]; then
|
||||
tmux attach-session -t $(hostname) || tmux new-session -s $(hostname)
|
||||
fi
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user