Substitute all "^key" by "C-key" for CTRL-key.

Also use R to reload default tmux configuration file.
This commit is contained in:
gardouille 2015-05-19 22:40:53 +02:00
parent 40946f5d57
commit fc6eba6dad
1 changed files with 18 additions and 17 deletions

View File

@ -1,4 +1,4 @@
###############--------------------------------------------------------------
##############--------------------------------------------------------------
##
## Fichier de configuration : ~/.tmux/tmux.conf
## 1.0: 14-09-11
@ -99,7 +99,7 @@ set -g status-interval 1
## Redéfinition de la combinaison principale par celle de screen (CTRL+a)
unbind C-b
set -g prefix ^A
set -g prefix C-a
bind a send-prefix
## Redéfinition des raccourcis:
@ -108,22 +108,22 @@ unbind A
bind A command-prompt "rename-window %%"
# Aller au terminal précédent (CTRL+a)
unbind ^A
bind ^A last-window
unbind C-a
bind-key C-a last-window
# Aller au terminal suivant (CTRL+n)
unbind ^N
bind ^N next-window
unbind C-n
bind-key C-n next-window
# Aller au terminal précédent (CTRL+p)
unbind ^P
bind ^P previous-window
unbind C-p
bind-key C-p previous-window
#Copy tmux buffer to CLIPBOARD
unbind ^C
unbind C-c
bind-key y run-shell -b "tmux save-buffer - | xclip -i -selection clipboard"
#Copy CLIPBOARD to tmux buffer and paste-it in tmux
bind ^V run "tmux set-buffer -- \"$(xclip -o -selection clipboard)\"; tmux paste-buffer"
bind-key C-v run "tmux set-buffer -- \"$(xclip -o -selection clipboard)\"; tmux paste-buffer"
# Copy-mode
bind-key -t vi-copy 'v' begin-selection
@ -136,8 +136,8 @@ unbind C-b
bind-key C-b command-prompt "find-window -CNT '%%'"
# Détacher tmux
unbind ^D
bind ^D detach
unbind C-d
bind C-d detach
# Zoom/Unzoom a pane
unbind f
@ -146,20 +146,21 @@ unbind C-f
bind-key C-f resize-pane -Z
# Verrouiller tmux
unbind ^X
bind ^X lock-server
unbind C-x
bind C-x lock-server
unbind x
bind x lock-server
# Activer/Désactiver la synchronisation des panels
unbind ^S
bind ^S set-window-option synchronize-panes
unbind C-s
bind C-s set-window-option synchronize-panes
# Lister les liens présents dans une fenêtre tmux (nécessite l'installation de urlview)
bind-key u capture-pane \; save-buffer ~/.tmux/.tmux-buffer \; new-window -n "urlview" '$SHELL -c "urlview < ~/.tmux/.tmux-buffer"'
# Recharger la configuration de tmux
bind-key r source-file ~/.tmux/tmux.conf
unbind R
bind-key R source-file ~/.tmux/tmux.conf
## Nouveaux raccourcis clavier pour les terminaux
# Aller au terminal n°{1,12} avec les touches F{1-12}