-
Notifications
You must be signed in to change notification settings - Fork 4
/
panda.tmux.conf
43 lines (33 loc) · 1.1 KB
/
panda.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
# Prefix is Ctrl-w
# asdfsd
set -g prefix C-q
# a prefix to send special commands to vim
bind a send-prefix
bind-key C-a last-window
unbind C-b
set -sg escape-time 1
set -g base-index 1
setw -g pane-base-index 1
# Longer scrollback history
set-option -g history-limit 1000000
# Sensible split pane commands
bind \ split-window -h -c '#{pane_current_path}'
bind - split-window -v -c '#{pane_current_path}'
unbind '"'
unbind %
# Mouse
set-option -g -q mouse on
bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'select-pane -t=; copy-mode -e; send-keys -M'"
bind -n WheelDownPane select-pane -t= \; send-keys -M
setw -g monitor-activity on
set -g visual-activity on
set -g mode-keys vi
set -g history-limit 1000000
# visual bell
set -g bell-action none
set -g visual-bell off
bind -n C-k clear-history
# copy and paste
bind -n C-v run-shell "tmux set-buffer \"$(xclip -o -selection clipboard)\"; tmux paste-buffer"
bind-key -T copy-mode-vi 'v' send -X begin-selection
bind-key -T copy-mode-vi 'y' send -X copy-pipe-and-cancel "xclip -in -selection clipboard"