* If run a local session, source additionnal config (such as different prefix key, color scheme, …)
This commit is contained in:
parent
b03dce65eb
commit
ce27c84c02
57
tmux.conf
57
tmux.conf
@ -20,53 +20,14 @@
|
|||||||
set-option -g status-utf8 on
|
set-option -g status-utf8 on
|
||||||
set-window-option -g utf8 on
|
set-window-option -g utf8 on
|
||||||
|
|
||||||
|
#### session ---------------------------------------------------------
|
||||||
|
## If run a local session, source additionnal configuration
|
||||||
|
# Different prefix key
|
||||||
|
# Different colors
|
||||||
|
if '[ -z "${SSH_TTY}" ]' 'source-file $HOME/.tmux/tmux.conf.local'
|
||||||
|
|
||||||
#### statusbar ---------------------------------------------------------
|
#### statusbar ---------------------------------------------------------
|
||||||
|
|
||||||
# Couleur du foreground (premier plan)
|
|
||||||
set -g status-fg yellow
|
|
||||||
# Couleur du background (arrière plan)
|
|
||||||
set -g status-bg black
|
|
||||||
|
|
||||||
## Terminaux par défaut
|
|
||||||
# Couleur du foreground
|
|
||||||
set-window-option -g window-status-fg cyan
|
|
||||||
# Couleur du background
|
|
||||||
set-window-option -g window-status-bg default
|
|
||||||
# Attribut
|
|
||||||
#bright/bold: gras
|
|
||||||
#dim:
|
|
||||||
#underscore: souligné
|
|
||||||
#blink: "clignotant"?
|
|
||||||
#reverse: Inverse les couleurs background et foreground
|
|
||||||
#hidden: caché
|
|
||||||
#italics: italique
|
|
||||||
set-window-option -g window-status-attr dim
|
|
||||||
|
|
||||||
## Terminal actif
|
|
||||||
# Couleur du foreground
|
|
||||||
set-window-option -g window-status-current-fg yellow
|
|
||||||
# Couleur du background
|
|
||||||
set-window-option -g window-status-current-bg cyan
|
|
||||||
# Attribut (cf ci-dessus pour la liste)
|
|
||||||
set-window-option -g window-status-current-attr bold
|
|
||||||
|
|
||||||
## Terminal avec notification
|
|
||||||
# Couleur du foreground
|
|
||||||
# Couleur du background
|
|
||||||
# Attribut
|
|
||||||
#setw -g window-status-alert-attr default
|
|
||||||
#setw -g window-status-alert-fg red
|
|
||||||
#setw -g window-status-alert-bg default
|
|
||||||
|
|
||||||
## Panel par défaut
|
|
||||||
set -g pane-border-fg white
|
|
||||||
#set -g pane-border-bg black
|
|
||||||
|
|
||||||
## Panel actif
|
|
||||||
set -g pane-active-border-fg cyan
|
|
||||||
#set -g pane-active-border-bg green
|
|
||||||
|
|
||||||
|
|
||||||
# Centrer la liste des terminaux
|
# Centrer la liste des terminaux
|
||||||
#set -g status-justify centre
|
#set -g status-justify centre
|
||||||
|
|
||||||
@ -93,14 +54,8 @@ set -g status-interval 1
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#### keybindings --------------------------------------------------------------
|
#### keybindings --------------------------------------------------------------
|
||||||
|
|
||||||
## 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:
|
## Redéfinition des raccourcis:
|
||||||
# Renommer le terminal courant
|
# Renommer le terminal courant
|
||||||
unbind A
|
unbind A
|
||||||
|
49
tmux.conf.local
Normal file
49
tmux.conf.local
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
#### statusbar ---------------------------------------------------------
|
||||||
|
|
||||||
|
# Couleur du foreground (premier plan)
|
||||||
|
set -g status-fg yellow
|
||||||
|
# Couleur du background (arrière plan)
|
||||||
|
set -g status-bg black
|
||||||
|
|
||||||
|
## Terminaux par défaut
|
||||||
|
# Window foreground color
|
||||||
|
set-window-option -g window-status-fg cyan
|
||||||
|
# Window background color
|
||||||
|
set-window-option -g window-status-bg default
|
||||||
|
# Attribut
|
||||||
|
#bright/bold:
|
||||||
|
#dim:
|
||||||
|
#underscore:
|
||||||
|
#blink: "clignotant"?
|
||||||
|
#reverse: reverse background and foreground colors
|
||||||
|
#hidden:
|
||||||
|
#italics:
|
||||||
|
set-window-option -g window-status-attr bold
|
||||||
|
|
||||||
|
## Terminal actif
|
||||||
|
# Current windows foreground color
|
||||||
|
set-window-option -g window-status-current-fg black
|
||||||
|
# Current windows background color
|
||||||
|
set-window-option -g window-status-current-bg cyan
|
||||||
|
# Attribut (cf ci-dessus pour la liste)
|
||||||
|
set-window-option -g window-status-current-attr dim
|
||||||
|
|
||||||
|
## Terminal avec notification
|
||||||
|
# Couleur du foreground
|
||||||
|
# Couleur du background
|
||||||
|
# Attribut
|
||||||
|
#setw -g window-status-alert-attr default
|
||||||
|
#setw -g window-status-alert-fg red
|
||||||
|
#setw -g window-status-alert-bg default
|
||||||
|
|
||||||
|
## Panel par défaut
|
||||||
|
set -g pane-border-fg white
|
||||||
|
|
||||||
|
## Panel actif
|
||||||
|
set -g pane-active-border-fg cyan
|
||||||
|
|
||||||
|
## Prefix key (default: C-b)
|
||||||
|
# Use C-a as a prefix-key only on local session
|
||||||
|
unbind C-b
|
||||||
|
set -g prefix C-a
|
||||||
|
bind a send-prefix
|
Loading…
Reference in New Issue
Block a user