-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.tmux.conf
55 lines (45 loc) · 1.76 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
set -g default-terminal "tmux-256color"
set -ga terminal-overrides ",*256col*:Tc"
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'nhdaly/tmux-better-mouse-mode'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'schasse/tmux-jump'
# Nicer status line
set -g @plugin 'niksingh710/minimal-tmux-status'
set -g @minimal-tmux-bg '#98c379'
set -g @minimal-tmux-indicator-str ' tmux '
set -g mouse on
set-option -s set-clipboard off
set-option -g prefix C-Space
#bind-key -t vi-copy MouseDragEnd1Pane copy-pipe "xclip -se c -i"
set -s escape-time 0
bind -n Pageup copy-mode -u # Page-up and Page-down scroll the page
# setw -g mode-keys vi
# Use vim-like keys for splits and windows
bind-key v split-window -h -c "#{pane_current_path}"
bind-key C-v split-window -h -c "#{pane_current_path}"
bind-key s split-window -v -c "#{pane_current_path}"
bind-key C-s split-window -v -c "#{pane_current_path}"
bind-key C-h select-pane -L
bind-key j select-pane -D
bind-key C-j select-pane -D
bind-key k select-pane -U
bind-key C-k select-pane -U
bind-key C-l select-pane -R
bind-key r rotate-window
bind-key C-r rotate-window
bind-key c kill-pane
bind-key C-c kill-pane
bind-key M-l next-window
bind-key M-h previous-window
bind-key n new-window
bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -se c -i'
bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel 'xclip -se c -i'
bind-key R source-file ~/.tmux.conf \; display-message "tmux.conf reloaded."
setw -g mode-keys vi
# Start windows and panes at 1, not 0
set -g base-index 1
setw -g pane-base-index 1
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '/usr/share/tmux-plugin-manager/tpm'