From 98b0d29a5e909f177f20d85758f6ae7bab1290ee Mon Sep 17 00:00:00 2001 From: John Bowdre Date: Wed, 19 Jul 2023 18:42:27 -0500 Subject: [PATCH] don't change tmux prefix keycombo on SSH sessions --- tmux/.tmux.conf | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf index 2caaad0..453151b 100644 --- a/tmux/.tmux.conf +++ b/tmux/.tmux.conf @@ -2,9 +2,10 @@ ## BINDINGS ## #################################### -# Change default Prefix key to Ctrl+Space -unbind C-b -set -g prefix C-Space +# Change default Prefix key to Ctrl+Space unless this is an SSH session +if-shell -b '! [ "$SSH_CLIENT" ]' { + unbind C-b; set -g prefix C-Space; display 'Bind key: CTRL+SPACE' +} # Reload config with Prefix+R unbind r