diff --git a/home/user/.bashrc b/home/user/.bashrc index decf2fa..c7e436c 100644 --- a/home/user/.bashrc +++ b/home/user/.bashrc @@ -7,7 +7,7 @@ if \ [[ ! "$TERM" =~ tmux ]] && \ command -v tmux &>/dev/null then - if tmux -N -L "$USER" server-info &>/dev/null; then + if tmux -N -L "$USER" list-sessions &>/dev/null; then if [ -n "$SSH_CLIENT" ]; then exec tmux -N -L "$USER" new-session else diff --git a/home/user/.config/zsh/.zshrc b/home/user/.config/zsh/.zshrc index e24ea6a..c39fc80 100644 --- a/home/user/.config/zsh/.zshrc +++ b/home/user/.config/zsh/.zshrc @@ -7,7 +7,7 @@ if \ [[ ! "$TERM" =~ tmux ]] && \ command -v tmux &>/dev/null then - if tmux -N -L "$USER" server-info &>/dev/null; then + if tmux -N -L "$USER" list-sessions &>/dev/null; then if [ -n "$SSH_CLIENT" ]; then exec tmux -N -L "$USER" new-session else