-
Notifications
You must be signed in to change notification settings - Fork 8
/
tmux.conf
45 lines (35 loc) · 1.43 KB
/
tmux.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Act like GNU screen
set -g prefix C-a
# Enable 24 bit color support
set -g default-terminal "tmux-256color"
set-option -ga terminal-overrides ",*256col*:Tc"
# Use xterm keyboard modifiers
# The only way (assisted with Learn Keys) to make mc recognize Shift+F6
setw -g xterm-keys on
# Start window numbers at 1 to match keyboard order with tmux window order
set -g base-index 1
# Renumber windows sequentially after closing any of them
set -g renumber-windows on
# Enable mouse support
set -g mouse on
# Enable windows titles
set -g set-titles on
# Fancy status bar
run-shell "$DOTFILES/tmux/plugins/colors-solarized/tmuxcolors.tmux"
set -g status-left "#H "
set -g status-left-length 20
set -g status-right "#{prefix_highlight} [%Z] %d.%m.%Y#(uptime)"
set -g status-right-length 100
# Sensible defaults and key bindings
run-shell "$DOTFILES/tmux/plugins/sensible/sensible.tmux"
run-shell "$DOTFILES/tmux/plugins/pain-control/pain_control.tmux"
# Advanced selection/yank/paster
run-shell "$DOTFILES/tmux/plugins/copycat/copycat.tmux"
run-shell "$DOTFILES/tmux/plugins/yank/yank.tmux"
run-shell "$DOTFILES/tmux/plugins/open/open.tmux"
# Indicate active prefix/copy mode
set -g @prefix_highlight_show_copy_mode 'on'
set -g @prefix_highlight_copy_mode_attr 'fg=black,bg=yellow'
set -g @prefix_highlight_show_sync_mode 'on'
set -g @prefix_highlight_sync_mode_attr 'fg=black,bg=green'
run-shell "$DOTFILES/tmux/plugins/prefix-highlight/prefix_highlight.tmux"