-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
54 lines (38 loc) · 1.47 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
bind -n M-Down select-pane -D
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n PageUp copy-mode -eu
bind -n ^PageDown next-window
bind -n ^PageUp previous-window
bind -n ^z resize-pane -Z
bind -T prefix '"' split-window -c '#{pane_current_path}'
bind -n ^h split-window -c '#{pane_current_path}'
bind -T prefix % split-window -c '#{pane_current_path}' -h
bind -n ^v split-window -c '#{pane_current_path}' -h
bind -T prefix c new-window -c '#{pane_current_path}'
bind -n ^t new-window -c '#{pane_current_path}'
set -g default-shell /bin/zsh
# new panes and windows are not login shells
set -g default-command "/bin/zsh"
# Enable mouse mode (tmux 2.1+)
set -g mouse on
# custom copy mode settings
unbind -T copy-mode-vi MouseDragEnd1Pane
unbind -T copy-mode-vi Enter
bind -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "head -c -1 | xclip -selection clipboard"
bind -T copy-mode-vi M-c send-keys -X copy-pipe "head -c -1 | xclip -selection clipboard"
### Theme
# colors
set -g status-bg blue
# alignment
set-option -g status-justify centre
# spot at right
set -g status-right '%H:%M %d-%m-%Y'
### Plugins
# continual session save and restore after machine restart
set -g @continuum-save-interval '15'
set -g @continuum-restore 'on'
# requires these directories to be cloned to these locations manually
run-shell ~/workspace/tmux-resurrect/resurrect.tmux
run-shell ~/workspace/tmux-continuum/continuum.tmux