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