-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
67 lines (55 loc) · 1.78 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
# Rebind prefix to something that doesn't clash with a frequently used keybind
set -g prefix C-e
unbind-key C-b
bind-key C-e send-prefix
set-window-option -g mode-keys vi
# Remap window navigation to vim
unbind-key h
unbind-key j
unbind-key k
unbind-key l
bind-key h select-pane -L
bind-key j select-pane -D
bind-key k select-pane -U
bind-key l select-pane -R
unbind-key H
unbind-key J
unbind-key K
unbind-key L
#bind-key -r H resize-pane -L 5
bind-key -r J resize-pane -D 5
bind-key -r K resize-pane -U 5
#bind-key -r L resize-pane -R 5
bind -Tcopy-mode-vi v send -X begin-selection
bind -Tcopy-mode-vi y send -X copy-selection
unbind-key C-h
unbind-key C-l
bind-key C-h previous-window
bind-key C-l next-window
bind-key C-j swap-window -t -1 \; previous-window
bind-key C-k swap-window -t +1 \; next-window
# Move the current pane into the window to the left or right.
bind-key H joinp -t :-1
bind-key L joinp -t :+1
unbind-key C-s
bind-key C-s set -g status
# Use current path in new splits and windows
bind '%' split-window -h -c '#{pane_current_path}' # Split panes horizontal
bind '"' split-window -v -c '#{pane_current_path}' # Split panes vertically
bind c new-window -c '#{pane_current_path}' # Create new window
# Renumber windows when one is deleted
set-option -g renumber-windows on
# Modify status bar
set -g status-left '>> '
set -g status-right '#(basename "#W") << "#S" << #(date "+%D %H:%M")'
set -g window-status-format ' [ #I ] '
set -g window-status-current-format '%[ #I ]%'
set-option -g status-interval 1
set -g status-position top
set -g status-style fg=colour2
set -g window-status-current-style bg=colour4
# Override word boundaries
set -g word-separators ' ~`!@#$%^&*()-+=[]{}|\;:",./<>?'
set -ga word-separators "'"
# Override escape-time.
set -s escape-time 5