maxime:openbsd:docs:tmux

Fichier de configuration

.tmux.conf
# Configuration file for tmux(1)
# Maxime DERCHE <maxime@mouet-mouet.net>
 
# The prefix is now <C-q>.
set-option -g prefix C-q
unbind-key C-b
bind-key C-q send-prefix
 
# Key bindings.
bind-key Space next-window
bind-key C-Space next-window
bind-key C-l lock-server
bind-key M command-prompt "split-window 'exec man %%'"
bind-key S command-prompt "new-window -n %1 'ssh %1'"
bind-key "F11" split-window -h
bind-key "F12" split-window -v
# reload config
bind-key C-r source-file ~/.tmux.conf \; display-message "Configuration reloaded..."
 
# Global options.
set-option -g default-terminal 'screen-256color'
set-option -g utf8 on
set-option -g status-utf8 on
set-option -g history-limit 1000
set-option -g mode-keys vi
set-option -g status-keys vi
set-option -g lock-server on
# Lock the session after 300 seconds (5 minutes) of inactivity.
set-option -g lock-after-time 300
set-option -g renumber-windows on
set-option -g set-titles on
set-option -g set-titles-string "#H - #S - #W"
 
# Status bar configuration.
#set-option -g status-left-length 8
#set-option -g status-left '[#S]'
set-option -g status on
set-option -g status-right-length 64
# "sysctl vm.loadavg" is an OpenBSD-only command.
set-option -g status-right '#H | #(sysctl vm.loadavg |cut -f 2 -d "=") | #(date +"%H:%M %a %e %b %Y")'
 
# Colors. Everywhere.
# attributes: none, bright (or bold), dim, underscore, blink, reverse, hidden, italics
# colors: black, red, green, yellow, blue, magenta, cyan, white
#         if supported: brightred, brightgreen, and so on
set-option -g status-bg cyan
set-option -g status-fg black
set-option -g status-attr none
set-window-option -g window-status-bg magenta
set-window-option -g window-status-fg white
set-window-option -g window-status-attr none
set-option -g message-bg red
set-option -g message-fg white
set-option -g message-attr none
set-option -g message-command-bg yellow
set-option -g message-command-fg black
set-option -g message-command-attr none

Bibliographie

  • maxime/openbsd/docs/tmux.txt
  • Dernière modification: 2021/10/08 00:17
  • (modification externe)