From 399ebd43478eefa423ffaa7a4d0b6891b1c2a0ef Mon Sep 17 00:00:00 2001 From: thek4n Date: Wed, 22 May 2024 13:11:30 +0300 Subject: [PATCH] fix(tmux+zsh): open remote tmux --- home/user/.bashrc | 1 - home/user/.config/bash/functions | 7 ------- home/user/.config/zsh/.zshrc | 1 - 3 files changed, 9 deletions(-) diff --git a/home/user/.bashrc b/home/user/.bashrc index fd7346b..8c66aa2 100644 --- a/home/user/.bashrc +++ b/home/user/.bashrc @@ -4,7 +4,6 @@ if \ [ "$(tty)" != "/dev/tty3" ] && \ [ -z "$TMUX" ] && \ - [[ ! "$TERM" =~ tmux ]] && \ command -v tmux &>/dev/null && \ tmux -N -L "$USER" list-sessions &>/dev/null then diff --git a/home/user/.config/bash/functions b/home/user/.config/bash/functions index 6847169..4f350b9 100644 --- a/home/user/.config/bash/functions +++ b/home/user/.config/bash/functions @@ -231,14 +231,7 @@ most-often-commands() { echo "$*" | bc -l } - # Enable X11Forwarding and disable mux session sshx() { ssh -X -o ControlMaster=no -o ControlPath=none $@ -} - -# Open remote tmux -ssht() { - REMOTE="$1"; shift - ssh -t "$REMOTE" tmux -u "$@" } \ No newline at end of file diff --git a/home/user/.config/zsh/.zshrc b/home/user/.config/zsh/.zshrc index a5bf910..0a82591 100644 --- a/home/user/.config/zsh/.zshrc +++ b/home/user/.config/zsh/.zshrc @@ -4,7 +4,6 @@ if \ [ "$(tty)" != "/dev/tty3" ] && \ [ -z "$TMUX" ] && \ - [[ ! "$TERM" =~ tmux ]] && \ command -v tmux &>/dev/null && \ tmux -N -L "$USER" list-sessions &>/dev/null then