-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf
42 lines (33 loc) · 1.13 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
# Remaps tmux prefix to Control-b
set -g prefix C-a
unbind C-b
bind C-a send-prefix
# Force a reload of the config file
unbind r
bind r source-file ~/.tmux.conf \; display "Reloaded configuration!"
# Improve colors
set -g default-terminal 'screen-256color'
# Activate mouse mode
set -g mouse on
# Navigate around panes easily using vim-like keybindings
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind -r C-n next-window
bind -r C-p previous-window
# Remove administrative debris (session name, hostname, time) in status bar
set -g status-left ''
set -g status-right ''
# Start window numbers at 1 to match keyboard order with tmux window order
set -g base-index 1
set-window-option -g pane-base-index 1
# Renumber windows sequentially after closing any of them
set -g renumber-windows on
# Colors
set-option -g status-style fg=white,bg=brightblack
set-window-option -g window-status-current-style fg=cyan,bg=brightblack
set -g status-left " #(window_list)"
set -g status-right "#(cd #{pane_current_path}; git rev-parse --abbrev-ref HEAD) "
set -g status-right-length 200
set -g status-right-style fg=green