-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
64 lines (49 loc) · 1.74 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
set-option -g default-shell /bin/zsh
set -g history-limit 10000
# Fixes HOME and END
#set -g default-terminal "tmux"
# legacy solution before tmux 2.1
set -g default-terminal "screen-256color"
set -sg escape-time 1
set -g base-index 1
setw -g pane-base-index 1
set -g mouse on
setw -g monitor-activity on
set -g visual-activity on
# vi instead of emacs keys
set -g mode-keys vi
# Word jumping
setw -g xterm-keys on
# interval in milliseconds to repeat a key
set -g repeat-time 1000
# Pane navigation vi style
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 resize vi style
bind-key -r C-j resize-pane -D
bind-key -r C-h resize-pane -L
bind-key -r C-k resize-pane -U
bind-key -r C-l resize-pane -R
# adding repeat to pane swapping
# brackets need to be escaped starting version 3.0a
bind-key -r -T prefix \{ swap-pane -U
bind-key -r -T prefix \} swap-pane -D
bind-key -T prefix '%' split-window -h -c "#{pane_current_path}"
bind-key -T prefix '"' split-window -c "#{pane_current_path}"
# Copy via clipboard (new style)
bind-key -T copy-mode-vi 'v' send -X begin-selection
bind-key -T copy-mode-vi 'y' send -X copy-pipe 'xclip -selection clipboard >/dev/null'
# Copy via clipboard (old style)
# bind-key -t vi-copy 'v' begin-selection
# bind-key -t vi-copy 'y' copy-pipe 'xclip -selection clipboard >/dev/null'
# Copy via clipboard (new style)
bind-key -T copy-mode-vi 'v' send-keys -X begin-selection
bind-key -T copy-mode-vi 'y' send-keys -X copy-pipe 'xclip -selection clipboard >/dev/null'
bind-key p paste-buffer
# removes strange signs when copying
set -g set-clipboard off
# Avoid suspending tmux
#unbind C-z
# bind h run-shell -b "/home/ga68cat/.oh-my-zsh/plugins/zsh-navigation-tools/znt-tmux.zsh"