only start tmux if SSH_TTY is set
This commit is contained in:
parent
63646f31ca
commit
d2ab6aabf6
1 changed files with 1 additions and 0 deletions
|
@ -36,6 +36,7 @@
|
|||
programs.fish.shellInit = ''
|
||||
if status is-interactive
|
||||
and not set -q TMUX
|
||||
and not set -q SSH_TTY
|
||||
tmux attach || tmux
|
||||
end
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue