-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
74 lines (58 loc) · 1.99 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
72
73
74
# act like vim
setw -g mode-keys vi
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind-key -r C-h select-window -t :-
bind-key -r C-l select-window -t :+
# act like GNU screen
unbind C-b
set -g prefix C-a
# look good
set -g default-terminal "screen-256color"
# Status bar {{{
set -g status-bg colour234
set -g status-fg colour239
set -g status-left-length 20
set -g status-left '#[fg=colour239]#S #[fg=colour237]⌘'
set -g status-right '#h #(~/.bin/batcharge.py 2>/dev/null)'
set-window-option -g window-status-style fg=colour239,bg=colour234
# Highlight current window {{{
set-window-option -g window-status-current-style fg=white,bg=colour234
# }}}
# Activity window {{{
set-window-option -g window-status-activity-style fg=cyan,bg=colour234
# }}}
# Highlight active window {{{
set-window-option -g window-status-bell-style fg=magenta,bg=magenta
# }}}
# window format {{{
setw -g window-status-format '#[fg=colour235,bg=colour234,noreverse]#I/#[default,noreverse]#W'
setw -g window-status-current-format '#[fg=green]#I#[fg=colour235]/#[default,noreverse]#W'
# }}}
# }}}
# Set window notifications {{{
setw -g monitor-activity on
set -g visual-activity on
# Automatically set window title
setw -g automatic-rename
# }}}
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
# Other examples:
# set -g @plugin 'github_username/plugin_name'
# set -g @plugin '[email protected]/user/plugin'
# set -g @plugin '[email protected]/user/plugin'
# Restore tmux environment after system restart.
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
set -g @continuum-restore 'on'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'
# Prevent delayed ESC in neovim
# https://github.com/neovim/neovim/wiki/FAQ#esc-in-tmux-or-gnu-screen-is-delayed
set-option -sg escape-time 10
set -g default-command /usr/bin/fish
set -g default-shell /usr/bin/fish