fix ssht and sshx functions

This commit is contained in:
thek4n 2024-03-21 14:57:38 +03:00
parent c8c32651e9
commit d537ddb6b3

View File

@ -220,10 +220,10 @@ most-often-commands() {
# Disable tmux on remote machine
ssht() {
ssh -t $@ 'TMUX=NO $SHELL -l'
TERM=tmux-256color ssh $@
}
# Enable X11Forwarding and disable mux session
# Enable X11Forwarding and disable mux and tmux session
sshx() {
ssh -X -o ControlMaster=no $@
ssht -X -o ControlMaster=no -o ControlPath=none $@
}