-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
68 lines (47 loc) · 1.42 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
unbind r
bind r source-file ~/.tmux.conf
set -g default-terminal "screen-256color"
set -g prefix C-Space
# enable mouse support
set -g mouse on
# act like vim
setw -g mode-keys vi
# pane
bind-key h select-pane -L
bind-key j select-pane -D
bind-key k select-pane -U
bind-key l select-pane -R
# pane resizing
bind -r H resize-pane -L 2
bind -r J resize-pane -D 2
bind -r K resize-pane -U 2
bind -r L resize-pane -R 2
# Bind Ctrl + Space then y to copy selected text in copy mode
bind -T copy-mode-vi y send -X copy-pipe-and-cancel "xclip -selection clipboard -in"
# copy selected texrt
bind -T copy-mode-vi MouseDragEnd1Pane send -X copy-pipe-and-cancel "xclip -i -selection clipboard"
bind -T copy-mode MouseDragEnd1Pane send -X copy-pipe-and-cancel "xclip -i -selection clipboard"
unbind n
unbind p
bind -r C-h previous-window
bind -r C-l next-window
bind Tab last-window
bind _ split-window -v
bind - split-window -h
set -g status-bg white
set -g status-fg black
set -g base-index 1
setw -g pane-base-index 1
setw -g automatic-rename on
set -g renumber-windows on
set -g set-titles on
set -g display-panes-time 800
set -g display-time 1000
set -g status-interval 10
# TPM
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'christoomey/vim-tmux-navigator'
# set -g @plugin 'leighmcculloch/tmux-colours-superhero'
set -g status-position bottom
run '~/.tmux/plugins/tpm/tpm'