diff --git a/home/user/.config/bash/functions b/home/user/.config/bash/functions index b561769..9df76b3 100644 --- a/home/user/.config/bash/functions +++ b/home/user/.config/bash/functions @@ -223,12 +223,8 @@ most-often-commands() { echo "$*" | bc -l } -# Disable tmux on remote machine -ssht() { - TERM=tmux-256color ssh $@ -} -# Enable X11Forwarding and disable mux and tmux session +# Enable X11Forwarding and disable mux session sshx() { - ssht -X -o ControlMaster=no -o ControlPath=none $@ + ssh -X -o ControlMaster=no -o ControlPath=none $@ } \ No newline at end of file diff --git a/home/user/.config/zsh/.zprofile b/home/user/.config/zsh/.zprofile index 27c1d28..05e8aac 100644 --- a/home/user/.config/zsh/.zprofile +++ b/home/user/.config/zsh/.zprofile @@ -5,11 +5,4 @@ fi if [[ "$TTY" = "/dev/tty1" ]] && [[ $XDG_VTNR -eq 1 ]] && [[ -z $DISPLAY ]] && systemctl -q is-active graphical.target; then exec startx >> ~/.xlogs 2>&1 -elif [[ "$TTY" = "/dev/tty2" ]] && command -v tmux &>/dev/null && [[ ! "$TERM" =~ tmux ]] && [[ -z "$TMUX" ]]; then - exec tmux new-session -s "$(basename $TTY)" -A -fi - -if [[ -n "$SSH_CLIENT" ]] && command -v tmux &>/dev/null && [[ ! "$TERM" =~ tmux ]] && [[ -z "$TMUX" ]]; then - export SSH_CLIENT - exec tmux new-session -s ssh -A fi \ No newline at end of file