only start tmux if SSH_TTY is set

This commit is contained in:
Charlotte 🦝 Delenk 2024-11-06 07:38:35 +01:00
parent 63646f31ca
commit d2ab6aabf6

View file

@ -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
'';