-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
71 lines (53 loc) · 1.72 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# truecolor colors
set-option -g default-terminal "screen-256color"
set-option -sa terminal-overrides ",screen-256color:RGB"
# status bar color
set -g status-style "fg=white bg=black"
# window colors
setw -g window-status-style "bg=black fg=white dim"
setw -g window-status-current-style "bg=colour24 fg=white bright"
# renumber windows after closing
set -g renumber-windows on
# pane colors
setw -g pane-border-style "bg=black fg=colour240"
setw -g pane-active-border-style "bg=colour24 fg=colour24"
# command line colors
set -g message-style "bg=black fg=white bright"
# status prompt
set -g status-right '#(~/bin/tmux_battery_charge_indicator.sh) #[bg=white fg=colour240] %l:%M #[bg=colour240 fg=white] %Y-%m-%d '
set -g status-left-length 40
# increase history buffer size
set -g history-limit 10000
# increase pane number display time
set -g display-panes-time 3000
# minimize delays (good for vim)
set -sg escape-time 0
# start windows and panes at 1
set -g base-index 1
set -g pane-base-index 1
# reload config
bind r source-file ~/.tmux.conf \; display 'Config Reloaded'
# better window split keys
bind | split-window -h
bind _ split-window -v
# use vim style movement between panes
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# last pane
bind b last-pane
# resize panes
bind -r H resize-pane -L 5
bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
bind -r L resize-pane -R 5
# max/min a pane
bind m resize-pane -Z
# Use vim keybindings in copy mode
setw -g mode-keys vi
# Setup 'v' to begin selection as in Vim
bind-key -T copy-mode-vi 'v' send -X begin-selection
bind-key -T copy-mode-vi 'y' send -X copy-selection-and-cancel
# nvim checkhealth suggestion
set-option -g focus-events on