-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
66 lines (54 loc) · 1.77 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
# enable 256 colors
set -g default-terminal "xterm-256color"
set -g terminal-overrides "xterm:colors=256"
# start indexes of windows and panes from 1
set -g base-index 1
setw -g pane-base-index 1
# copy mode
setw -g mode-keys vi
# highlight active window
set -g window-style "bg=colour235"
set -g window-active-style "bg=colour232"
# Set new panes to open in current directory
bind s split-window -c "#{pane_current_path}"
bind v split-window -h -c "#{pane_current_path}"
# cyclic move between panes
bind C-o select-pane -t :.+
# move between panes
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind C-h select-pane -L
bind C-j select-pane -D
bind C-k select-pane -U
bind C-l select-pane -R
# move between windows
bind C-n next-window
bind C-p previous-window
# resize panes
size=10
bind H resize-pane -L $size
bind J resize-pane -D $size
bind K resize-pane -U $size
bind L resize-pane -R $size
# status line
set -g status-justify "centre"
set -g status-bg "colour238"
set -g status-fg "colour255"
set -g status-left-length 20
set -g status-left "#[fg=colour255,bg=colour241]Session: #S #[default]"
setw -g window-status-format " #I: #W "
setw -g window-status-current-format "#[fg=colour255,bg=colour27,bold] #I: #W #[default]"
set -g status-right-length 60
set -g status-right "#[fg=colour255,bg=colour241] #h | %m/%d %H:%M:%S#[default]"
# enable mouse
set -g mouse on
bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'copy-mode -e'"
bind -n WheelDownPane select-pane -t= \; send-keys -M
# plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'tmux-plugins/tmux-logging'
run '~/.tmux/plugins/tpm/tpm'