remove tmux from autostart by ssh and tty2. (Its always now)
This commit is contained in:
parent
4c4622a764
commit
4212284e94
@ -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 $@
|
||||
}
|
||||
@ -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
|
||||
Loading…
x
Reference in New Issue
Block a user