-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf
53 lines (43 loc) · 1.44 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
# set vim like mouse support
set-window-option -g mode-keys vi
# set copy and yank support
# for non-MAC
#bind-key -T copy-mode-vi 'v' send -X begin-selection
#bind-key -T copy-mode-vi 'y' send -X copy-selection-and-cancel
# for Mac
bind -T copy-mode-vi v send -X begin-selection
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "pbcopy"
bind P paste-buffer
bind -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "pbcopy"
# set mouse click support
set -g mouse on
# vim like pane switching
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# resize panes more easily
# use -r for key hold down to repeat
# bind < resize-pane -L 10
bind -r < resize-pane -L 10
bind -r > resize-pane -R 10
bind -r - resize-pane -D 10
bind -r + resize-pane -U 10
# set history limit
set-option -g history-limit 50000
# set display-time longer, 0 means infinite
set-option -g display-time 0
# set display pane number longer
set -g display-panes-time 100000
# set open new window and pane on current directory
bind c new-window -c "#{pane_current_path}"
bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
# set the following in bash profile to turn on history
# set history
# use shopt for bash and use setopt for zsh
#shopt -s histappend
#setopt histappend
# not working in zsh but works in bash
#export PROMPT_COMMAND="history -a; history -n"
#export PROMPT_COMMAND="history -a"