-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtmux.conf
43 lines (38 loc) · 1.17 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
# some stuff here derived from:
# http://thedrearlight.com/blog/tmux-vim.html
# act like GNU screen
# (remove because we use ctrl+a to get to beginning of line)
#unbind C-b
#set -g prefix C-a
# a mouse
# tmux 2.0 and under:
#set -g mode-mouse on
#setw -g mouse-resize-pane on
#setw -g mouse-select-window on
#setw -g mouse-select-pane on
# or on tmux 2.1+:
set-option -g mouse on
# 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 :+
#unbind [
#bind ` copy-mode
#unbind p
#bind p paste-buffer
#bind -t vi-copy v begin-selection
#bind -t vi-copy y copy-selection
# after copying to a tmux buffer, hit y again to copy to clipboard
# Mac:
# bind y run "tmux save-buffer - | reattach-to-user-namespace pbcopy"
# GNU/Linux:
bind y run "tmux save-buffer - | xsel --clipboard --input"
# Tmux 1.9 removed the default path, so we need to indicate it manually
# That's not fun, so we're rebinding everything
bind c new-window -c '#{pane_current_path}'
bind-key '"' split-window -c '#{pane_current_path}'
bind-key '%' split-window -h -c '#{pane_current_path}'