-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf
87 lines (68 loc) · 2.28 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
76
77
78
79
80
81
82
83
84
85
86
87
# vi movement
bind-key -r h select-pane -L
bind-key -r j select-pane -D
bind-key -r k select-pane -U
bind-key -r l select-pane -R
# vi in copy mode
setw -g mode-keys vi
# vi resizing
bind-key -r < resize-pane -L 2
bind-key -r > resize-pane -R 2
bind-key -r a resize-pane -U 2
bind-key -r A resize-pane -D 2
# advanced pane handling
bind-key b command-prompt -p "join pane from:" "join-pane -s '%%'"
bind-key v command-prompt -p "send pane to:" "join-pane -t '%%'"
# history
set -g history-limit 10000
##### COLOUR (Solarized dark)
## pane border
#set-option -g pane-border-fg colour235 #base02
#set-option -g pane-active-border-fg colour46 #base01
## message text
#set-option -g message-bg colour235 #base02
#set-option -g message-fg colour196 #orange
#
## pane number display
#set-option -g display-panes-active-colour colour20 #blue
#set-option -g display-panes-colour colour196 #orange
#
## clock
#set-window-option -g clock-mode-colour colour40 #green
##### COLOUR end
# reload ~/.tmux.conf using PREFIX r
bind-key r source-file ~/.tmux.conf \; display "Reloaded!"
# list windows
bind-key t choose-tree
# move window
bind-key -n C-S-Left swap-window -t -1\; select-window -t -1
bind-key -n C-S-Right swap-window -t +1\; select-window -t +1
# move between windows
bind-key -r Left select-window -t -1
bind-key -r Right select-window -t +1
# start pane in same folder
bind-key % split-window -h -c "#{pane_current_path}"
bind-key '"' split-window -v -c "#{pane_current_path}"
bind-key c new-window -c "#{pane_current_path}"
# rename panes to folder / process
set-option -g status-interval 5
set-option -g automatic-rename on
set-option -g automatic-rename-format '#{b;=4:pane_current_path}|#{=4:pane_current_command}'
set -g status-right "%H:%M"
# visual bell
set-window-option -g visual-bell both
set-window-option -g bell-action other
# tmux plugins
# Install with <prefix> Ctrl-I
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
# Initialize TMUX plugin manager (keep this line at the very bottom of
# tmux.conf)
run '~/.tmux/plugins/tpm/tpm'
# breaks currently
# set -g default-terminal "tmux-256color"
# requested by vim
set-option -sg escape-time 10
set-option -sa terminal-overrides ',XXX:RGB'
set-option -g set-titles on
set-option -g set-titles-string "tmux @ #{host_short}"