-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
52 lines (41 loc) · 1.43 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
# See https://github.com/syl20bnr/spacemacs/wiki/Terminal#truecolor-and-italic-support
set -g default-terminal "xterm-24bit"
set -g terminal-overrides ',xterm-24bit:Tc'
set -s -g escape-time 0
# act like GNU screen
unbind C-b
set -g prefix C-a
bind-key C-a last-window
# create new windows with the current path
unbind-key c
bind-key c new-window -c "#{pane_current_path}"
unbind-key '"'
bind-key '"' split-window -v -c "#{pane_current_path}"
unbind-key %
bind-key % split-window -h -c "#{pane_current_path}"
# mouse
set -g mouse on
# don't exit copy mode on mouse up
# unbind -T copy-mode-vi MouseDragEnd1Pane
# act like Vim
set -g mode-keys vi
bind-key -T copy-mode-vi 'v' send -X begin-selection
bind-key h select-pane -L
bind-key j select-pane -D
bind-key k select-pane -U
bind-key l select-pane -R
bind-key H resize-pane -L 5
bind-key J resize-pane -D 5
bind-key K resize-pane -U 5
bind-key L resize-pane -R 5
bind-key -r C-j select-window -t :+
bind-key -r C-k select-window -t :-
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-yank'
# Replace the default set by tmux-yank so that copy does not exit copy-mode:
# set -g @yank_action 'copy-pipe' # or 'copy-pipe-and-cancel' for the default
set -g @plugin 'jimeh/tmux-themepack'
set -g @themepack 'powerline/block/blue'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run -b '~/.tmux/plugins/tpm/tpm'