-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.tmux.conf
39 lines (34 loc) · 1.08 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
# act like vim
setw -g mode-keys vi
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind-key -r C-h select-window -t :-
bind-key -r C-l select-window -t :+
bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}"
# act like GNU screen
unbind C-b
set -g prefix C-q
# look good
set -g default-terminal "screen-256color"
# Mouse mode
set-option -g mouse on
# set-option -g mode-mouse on
# set-option -g mouse-select-pane on
# set-option -g mouse-resize-pane on
# set-option -g terminal-overrides 'xterm*:smcup@:rmcup@'
# Copy options
bind [ copy-mode
# bind -t vi-copy v begin-selection
# bind -t vi-copy y copy-selection
#bind -t vi-copy V rectangle-toggle
#bind ] paste-buffer
# move x clipboard into tmux paste buffer
bind v run "tmux set-buffer \"$(xclip -o)\"; tmux paste-buffer"
# move tmux copy buffer into x clipboard
bind y run-shell "tmux show-buffer | xclip -sel clip -i" \; display-message "Copied tmux buffer to system clipboard"
# buffer
bind Space choose-buffer