From b03dce65ebdfb9f1a1d77252ea3b0155cf02757a Mon Sep 17 00:00:00 2001 From: Gardouille Date: Mon, 21 Sep 2015 21:16:12 +0200 Subject: [PATCH] Use C-a as default a prefix key only on local session (!=ssh). --- tmux.conf | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tmux.conf b/tmux.conf index 23e97ae..0ac2be7 100644 --- a/tmux.conf +++ b/tmux.conf @@ -97,10 +97,9 @@ set -g status-interval 1 #### keybindings -------------------------------------------------------------- -## Redéfinition de la combinaison principale par celle de screen (CTRL+a) -unbind C-b -set -g prefix C-a -bind a send-prefix +## Prefix key (default: C-b) +# Use C-a as a prefix-key only on local session +if '[ -z "${SSH_TTY}" ]' 'unbind C-b; set -g prefix C-a; bind a send-prefix' ## Redéfinition des raccourcis: # Renommer le terminal courant