dotfiles/tmux/tmux.conf

62 lines
1.4 KiB
Plaintext
Raw Normal View History

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
# 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
2020-12-28 19:56:36 +01:00
set-window-option -g window-status-current-style fg=brightyellow
2020-03-07 01:52:27 +01:00
# 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
2020-12-28 19:56:36 +01:00
set-option -g status on
2020-03-07 01:52:27 +01:00
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"