-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf
69 lines (54 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
#Split panes using = and ù
bind ù split-window -h -c '#{pane_current_path}'
bind = split-window -v -c '#{pane_current_path}'
unbind '"'
unbind %
#Prefix is Alt-a
set -g prefix M-a
bind M-a send-prefix
unbind C-b
# For nested sessions, a sends a command to the inner session
bind-key a send-prefix
set -sg escape-time 1
set -g base-index 1
setw -g pane-base-index 1
#Mouse works as expected
set -g mouse on
setw -g monitor-activity on
set -g visual-activity on
set -g mode-keys vi
set -g history-limit 10000
#Vim mode
set-window-option -g mode-keys vi
# resize panes with vim movement keys
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
# moving between panes with vim movement keys
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# copy to xclip with y
bind -T copy-mode-vi y send -X copy-pipe 'xclip -in -selection clipboard'
# Allow us to reload our Tmux configuration while
# using Tmux
bind r source-file ~/.tmux.conf \; display "Reloaded!"
################ Theme ###############
set -g default-terminal "xterm-256color"
set-option -g pane-active-border-fg colour32
set-option -g pane-active-border-bg colour255
set-option -g pane-border-fg default
set-option -g pane-border-bg default
## Status bar
set -g status-left ''
set -g status-right '#[fg=white,bg=bluew] #(echo $USER)@#H #[fg=white,bg=blue] #S '
set -g status-bg default
setw -g window-status-format '#[bg=colour255] #I #[bg=colour254] #W '
setw -g window-status-current-format '#[fg=colour15,bg=colour19] #I #[fg=colour15,bg=colour20] #W '
set -wg mode-style bg=blue,fg=white #Selection color
## Message
set -g message-bg blue
set -g message-fg white
set -g message-attr bright