From de00dd31078b4c33bb95713eddfad2b6bcf987c0 Mon Sep 17 00:00:00 2001 From: thek4n Date: Fri, 15 Mar 2024 16:51:51 +0300 Subject: [PATCH] ssh aliases --- home/user/.config/bash/functions | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/home/user/.config/bash/functions b/home/user/.config/bash/functions index d46e89a..8f57dc5 100644 --- a/home/user/.config/bash/functions +++ b/home/user/.config/bash/functions @@ -220,5 +220,10 @@ most-often-commands() { # Disable tmux on remote machine ssht() { - ssh -t "$1" 'TMUX=NO $SHELL -l' + ssh -t $@ 'TMUX=NO $SHELL -l' +} + +# Enable X11Forwarding and disable mux session +sshx() { + ssh -X -o ControlMaster=no $@ } \ No newline at end of file