en:ressources:astuces:tmux
Tmux configuration file
#remap command to ctrl+a set -g prefix C-a # reduce command delay set -s escape-time 1 # first window is number 1, not zero set -g base-index 1 set -g pane-base-index 1 # reload conf with command+r bind r source-file ~/.tmux.conf \; display "Reloaded!" # remap window split commands bind | split-window -h bind - split-window -v # remap pane movements bind h select-pane -L bind j select-pane -D bind k select-pane -U bind l select-pane -R # disable the mouse setw -g mode-mouse off set -g mouse-select-pane off set -g mouse-resize-pane off set -g mouse-select-window off # use plenty of colors # test available colours with # for i in {0..255} ; do # printf "\x1b[38;5;${i}mcolour${i}\n" # done set -g default-terminal "screen-256color" # status bar set -g status-fg white set -g status-bg black # (in)active windows setw -g window-status-fg cyan setw -g window-status-bg default setw -g window-status-attr dim setw -g window-status-current-fg white setw -g window-status-current-bg red setw -g window-status-current-attr bright set -g pane-border-fg colour250 set -g pane-border-bg colour237 set -g pane-active-border-fg colour173 set -g pane-active-border-bg black # status bar tuning set -g status-utf8 on set -g status-left-length 40 set -g status-left "#[fg=green]Session: #S #[fg=yellow]#I #[fg=cyan]#P" set -g status-right "#[fg=cyan]%d %b %R" set -g status-interval 60 setw -g monitor-activity on set -g visual-activity on # Log output to a text file on demand bind P pipe-pane -o "cat >>~/#W.log" \; display "Toggled logging to ~/#W.log"
en/ressources/astuces/tmux.txt · Last modified: 2024/04/17 10:19 by 127.0.0.1