2020-03-07 01:52:27 +01:00
|
|
|
#
|
|
|
|
# ~/.tmux.conf
|
|
|
|
#
|
|
|
|
|
2016-09-21 01:22:14 +02:00
|
|
|
# use ^b as prefix
|
2020-03-07 01:52:27 +01:00
|
|
|
set-option -g prefix C-b
|
|
|
|
|
|
|
|
# bind : to command-prompt like vim
|
|
|
|
# this is default
|
|
|
|
bind : command-prompt
|
2016-09-21 01:22:14 +02:00
|
|
|
|
2020-03-07 01:52:27 +01:00
|
|
|
# use r to force a reload of the config file
|
2016-09-21 01:22:14 +02:00
|
|
|
unbind r
|
|
|
|
bind r source-file ~/.tmux.conf\; display "Reloaded!"
|
|
|
|
|
2020-03-07 01:52:27 +01:00
|
|
|
# start window numbering at 1
|
|
|
|
set-option -g base-index 1
|
2016-09-21 01:22:14 +02:00
|
|
|
|
2020-03-07 01:52:27 +01:00
|
|
|
# vi-style controls for copy mode
|
|
|
|
set-window-option -g mode-keys vi
|
2016-09-21 01:22:14 +02:00
|
|
|
|
2020-03-07 01:52:27 +01:00
|
|
|
# correct term for 256 colors
|
|
|
|
set-option -g default-terminal "xterm-256color"
|
|
|
|
# enable true color in term
|
|
|
|
set-option -ga terminal-overrides ",xterm-256color:Tc"
|
2016-10-03 10:30:30 +02:00
|
|
|
|
2020-03-07 01:52:27 +01:00
|
|
|
# remove escape key delay
|
|
|
|
set-option -g escape-time 0
|
2016-09-21 01:22:14 +02:00
|
|
|
|
2020-03-07 01:52:27 +01:00
|
|
|
# dynamic window title
|
2016-10-15 13:35:51 +02:00
|
|
|
set-option -g set-titles on
|
|
|
|
set-window-option -g automatic-rename on
|
|
|
|
|
2020-03-07 01:52:27 +01:00
|
|
|
# highlight window when it has new activity
|
|
|
|
set-window-option -g monitor-activity on
|
|
|
|
|
|
|
|
# use | to split window horizontally and - to split vertically
|
2016-09-21 01:22:14 +02:00
|
|
|
bind | split-window -h
|
|
|
|
bind - split-window -v
|
|
|
|
|
2020-03-07 01:52:27 +01:00
|
|
|
# use vim's definition splitting (reverse of tmux)
|
|
|
|
bind s split-window -v
|
|
|
|
bind v split-window -h
|
|
|
|
|
|
|
|
# disable mouse
|
|
|
|
set-window-option -g mode-mouse off
|
|
|
|
|
|
|
|
|
|
|
|
# default status bar colours
|
|
|
|
set-option -g status-bg black
|
|
|
|
set-option -g status-fg white
|
|
|
|
set-window-option -g window-status-bell-style bg=black,fg=brightred
|
|
|
|
set-window-option -g windows-status-current-style fg=brightyellow
|
|
|
|
|
|
|
|
# default status bar content
|
|
|
|
set-option -g status-left "#h"
|
|
|
|
set-option -g status-left-length 70
|
|
|
|
set-option -g status-right "%a %d-%m-%y :: %H:%M"
|
|
|
|
|
|
|
|
# enable UTF-8 support
|
|
|
|
set-option -g status-utf8 on
|
|
|
|
|
2016-09-21 01:22:14 +02:00
|
|
|
|
2016-10-03 10:30:30 +02:00
|
|
|
# Try loading machine specific things
|
|
|
|
run-shell "bash ~/.tmux/load_hostnames.sh"
|