-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
76 lines (70 loc) · 2.69 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
75
set -g update-environment "DBUS_SESSION_BUS_ADDRESS DESKTOP_SESSION DISPLAY GNOME_KEYRING_CONTROL GNOME_KEYRING_PID GPG_AGENT_INFO GPG_AGENT_INFO ORIGCOLORTERM ORIGTERM SESSION_MANAGER SSH_AGENT_PID SSH_CONNECTION WINDOWID XAUTHORITY XDG_SESSION_COOKIE XDG_SESSION_PATH"
setw -g mode-keys vi
set-environment -g SSH_AUTH_SOCK ~/.ssh/ssh_auth_sock
set -g status-right ''
THEME_COLOR=green
ACTIVITY_COLOR=colour220
SYNC_COLOR=colour220
set -g mouse off
setw -g window-status-current-style fg=$THEME_COLOR,bg=black
setw -g window-status-style fg=black,bg=$THEME_COLOR
set -g status-style fg=black,bg=$THEME_COLOR
set -g window-status-activity-style fg=$ACTIVITY_COLOR,bg=$THEME_COLOR
# set -g window-style 'fg=colour252,bg=colour236'
# set -g window-active-style 'fg=colour255,bg=black'
set-option -gw window-status-current-format '#{?pane_synchronized,#[bg='$SYNC_COLOR' fg=black],}#I:#W#F#{?pane_synchronized,#[default]}'
set -g pane-border-style fg=colour240
set -g pane-active-border-style fg=$THEME_COLOR
set-option -g history-limit 10000
setw -g monitor-activity on
set -g visual-activity off
set -g allow-rename off
set-option -g renumber-windows on
bind -n M-v paste-buffer
bind -n M-r command-prompt -I "#W" "rename-window '%%'"
bind -n M-` command-prompt
bind -n M-s choose-tree -s
bind -n M-c copy-mode
bind -n M-f copy-mode \; send-keys ?
bind -n M-o movew -r
bind -n M-a setw synchronize-panes
bind -n M-= resize-pane -Z
bind -n M-| split-window -h
bind -n M-\\ split-window -h
bind -n M-- split-window -v
bind -n M-j join-pane -t :-1
bind -n M-b break-pane
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D
bind -n M-PageUp prev
bind -n M-PageDown next
bind -n M-[ swap-window -d -t -1 \;
bind -n M-] swap-window -d -t +1 \;
bind -n M-, swap-pane -t -1 \; last-pane
bind -n M-. swap-pane -t +1 \; last-pane
bind -n M-t new-window
bind -n M-w kill-pane
bind -n M-0 select-window -t :0
bind -n M-1 select-window -t :1
bind -n M-2 select-window -t :2
bind -n M-3 select-window -t :3
bind -n M-4 select-window -t :4
bind -n M-5 select-window -t :5
bind -n M-6 select-window -t :6
bind -n M-7 select-window -t :7
bind -n M-8 select-window -t :8
bind -n M-9 select-window -t :9
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
set -g @plugin 'sainnhe/tmux-fzf'
set -g @resurrect-capture-pane-contents 'on'
set -g @resurrect-processes 'ssh sudo vi vim mysql psql'
set -g @continuum-restore 'on'
set -g @continuum-boot 'on'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'