Fix tmux startup
This commit is contained in:
parent
7e3aa27aee
commit
928509ed9a
1 changed files with 1 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
||||||
# Launch tmux if logging in over ssh
|
# Launch tmux if logging in over ssh
|
||||||
if [[ -z "$TMUX" ]] && [[ -n "$SSH_CONNECTION" ]]; then
|
if [[ -z "$TMUX" ]] && [[ -n "$SSH_CONNECTION" ]]; then
|
||||||
if tmux has-session -t ssh_tmux &2>/dev/null; then
|
if tmux has-session -t ssh_tmux 2>/dev/null; then
|
||||||
exec tmux -2 attach-session -t ssh_tmux
|
exec tmux -2 attach-session -t ssh_tmux
|
||||||
else
|
else
|
||||||
exec tmux -2 new-session -s ssh_tmux
|
exec tmux -2 new-session -s ssh_tmux
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue