-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_tmux.conf
69 lines (53 loc) · 1.71 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
# screen-like key bindings
unbind C-b
set -g prefix C-a
bind a send-prefix
bind-key C-c new-window
bind-key C-a last-window
bind-key x lock-server
set-window-option -g xterm-keys on
unbind-key -n C-Left
unbind-key -n C-Right
# Window navigation
bind-key -n C-S-Left previous-window
bind-key -n C-S-Right next-window
bind-key -n F3 previous-window
bind-key -n F4 next-window
# move around panes with hjkl, as one would in vim after pressing ctrl-w
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# resize panes like vim
bind -r < resize-pane -L 1
bind -r > resize-pane -R 1
bind -r - resize-pane -D 1
bind -r + resize-pane -U 1
set -g default-shell /bin/zsh
set -g default-terminal 'screen'
set -g status-style fg=white,bg='#2e3436'
set -g status-left-length 25
set -g status-left '#[fg=green][ #[fg=yellow]#{host_short}#[fg=green]|#[fg=cyan]#{session_name} #[fg=green]]['
set -g status-right '#[fg=green]][ #[fg=cyan]%b-%d %a #[fg=white]%H:%M #[fg=green]]'
set -g status-left-style bright
set -g status-right-style bright
set -g window-status-style dim
set -g window-status-current-style bright
set -g window-status-bell-style fg='#2e3436',bg='#3eec90',bright
set -g history-limit 10000
setw -g mode-keys vi
set -g status-keys vi
set -g set-titles on
set -g set-titles-string "#{window_name} - #{host_short}|#{session_name}"
set -g lock-command vlock
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
# Other plugins
set -g @plugin 'tmux-plugins/tmux-resurrect'
# resurrect
set -g @resurrect-processes ':all:'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'
# Mouse mode
set -g mouse on