Use C-a as default a prefix key only on local session (!=ssh).

This commit is contained in:
Jeremy Gardais 2015-09-21 21:16:12 +02:00
parent c10e8dc9d3
commit b03dce65eb
1 changed files with 3 additions and 4 deletions

View File

@ -97,10 +97,9 @@ set -g status-interval 1
#### keybindings -------------------------------------------------------------- #### keybindings --------------------------------------------------------------
## Redéfinition de la combinaison principale par celle de screen (CTRL+a) ## Prefix key (default: C-b)
unbind C-b # Use C-a as a prefix-key only on local session
set -g prefix C-a if '[ -z "${SSH_TTY}" ]' 'unbind C-b; set -g prefix C-a; bind a send-prefix'
bind a send-prefix
## Redéfinition des raccourcis: ## Redéfinition des raccourcis:
# Renommer le terminal courant # Renommer le terminal courant