-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmux.conf
59 lines (45 loc) · 1.54 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
set -g mouse on
set -g history-limit 10000
bind e command-prompt -p 'save history to filename:' -I '~/tmux.history' 'capture-pane -S -10000; save-buffer %1; delete-buffer'
# set -g default-terminal "screen-256color"
set -g default-terminal "xterm-256color"
set -g status-right "%A, %d %b %Y %I:%M %p"
set -s escape-time 0
set-window-option -g mode-keys vi
bind -T copy-mode-vi v send -X begin-selection
bind -T copy-mode-vi y send -X copy-pipe 'clip.exe'
# bind -T copy-mode-vi y send -X copy-pipe 'pbcopy'
unbind -T copy-mode-vi MouseDragEnd1Pane
# set ` as the default prefix key combination
# and unbind C-b to free it up
# set-option -g prefix C-q
set-option -g prefix '`'
unbind C-b
unbind C-q
unbind C-n
unbind n
unbind C-p
unbind p
bind c new-window -c "#{pane_current_path}"
# use PREFIX | to split window horizontally and PREFIX - to split vertically
bind \\ split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"
# use send-prefix to pass ` through to application
bind '`' send-prefix
# reload ~/.tmux.conf using PREFIX r
bind r source-file ~/.tmux.conf \; display "Reloaded!"
# Make the current window the first window
bind T swap-window -t 1
# and use h and l to cycle thru panes
# bind -r C-h select-window -t :-
# bind -r C-l select-window -t :+
# map Vi movement keys as pane movement keys
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# resize panes using PREFIX H, J, K, L
bind H resize-pane -L 5
bind J resize-pane -D 5
bind K resize-pane -U 5
bind L resize-pane -R 5