add ttys to ignore zsh

This commit is contained in:
thek4n 2026-04-22 19:32:20 +03:00
parent bc5cd00132
commit 9cba2310e3

View File

@ -3,6 +3,9 @@
if \
[ "$(tty)" != "/dev/tty3" ] && \
[ "$(tty)" != "/dev/tty4" ] && \
[ "$(tty)" != "/dev/tty5" ] && \
[ "$(tty)" != "/dev/tty6" ] && \
command -v tmux &>/dev/null && \
[ -z "${TMUX}" ] && \
tmux -N -L "${USER}" list-sessions &>/dev/null