67 lines
1.9 KiB
Plaintext
67 lines
1.9 KiB
Plaintext
# Configuration du terminal
|
|
set -g default-terminal "xterm-256color"
|
|
|
|
##################################
|
|
#Changements des raccourcis claviers
|
|
##################################
|
|
#On change Control +b par Control +x
|
|
set -g prefix C-x
|
|
unbind C-b
|
|
bind C-x send-prefix
|
|
|
|
#On utlise control + flèches pour naviguer entre les terminaux
|
|
bind-key -n C-right next
|
|
bind-key -n C-left prev
|
|
|
|
#on utilise alt + flèches our naviguer entre les panels
|
|
bind-key -n M-left select-pane -L
|
|
bind-key -n M-right select-pane -R
|
|
bind-key -n M-up select-pane -U
|
|
bind-key -n M-down select-pane -D
|
|
|
|
#On change les raccourcis pour faire du split vertical et horizontal
|
|
#On utilise la touche "|" (pipe) pour faire un split vertical
|
|
bind | split-window -h
|
|
#Et la touche "-" pour faire un split horizontal
|
|
bind - split-window -v
|
|
|
|
# Copie du buffer
|
|
bind-key s command-prompt -p 'save history to:' -I 'output_tmux.txt' 'capture-pane -S - ; save-buffer %1 ; delete-buffer'
|
|
|
|
|
|
##################################
|
|
#Changements pratiques
|
|
##################################
|
|
#On permet l'utilisation de la souris pour changer de terminal et de panel
|
|
set-option -g mouse on
|
|
|
|
|
|
#Les fenêtres commencent par 1 et non par 0
|
|
set -g base-index 1
|
|
|
|
##################################
|
|
#Changements visuels
|
|
##################################
|
|
#On met les panneaux non actif en gris
|
|
set -g pane-border-style fg=colour244,bg=default
|
|
|
|
#On met la barre de status en gris
|
|
set -g status-style fg=colour0,bg=colour81,dim
|
|
|
|
# On surligne les fenêtres actives dans la barre de status en gris foncés
|
|
set-window-option -g window-status-current-style fg=colour15,bg=colour0
|
|
# Clock color
|
|
set-window-option -g clock-mode-colour green
|
|
|
|
# Git informations
|
|
set -g status-right " | #[fg=dark]%H:%M | %A %d %b %Y "
|
|
set -g status-right-length 200
|
|
|
|
|
|
# Buffer size
|
|
set-option -g history-limit 2000000
|
|
|
|
# Raccourcis pour couper l'interation de la souris
|
|
bind m set-option mouse\; display-message "Mouse is now #{?mouse,on,off}"
|
|
|