This commit is contained in:
Bryan Ramos 2026-03-14 16:04:05 -04:00
parent 14efa80cab
commit 86209ebcf1
2 changed files with 2 additions and 2 deletions

View file

@ -36,7 +36,7 @@ in
# Auto-start tmux only on local TTY (not SSH, not in tmux already)
programs.bash.profileExtra = mkIf (!wm.enable) ''
if [[ $- == *i* ]] && [ -z "$DISPLAY" ] && [ -z "$TMUX" ] && [ -z "$SSH_TTY" ] && [ -z "$SSH_CONNECTION" ]; then
if [ -t 0 ] && [[ $- == *i* ]] && [ -z "$DISPLAY" ] && [ -z "$TMUX" ] && [ -z "$SSH_TTY" ] && [ -z "$SSH_CONNECTION" ]; then
exec tmux
fi
'';