-
Notifications
You must be signed in to change notification settings - Fork 9
/
.tmux.conf
44 lines (31 loc) · 941 Bytes
/
.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
# capslock + b for tmux prefix
########## Session actions:
# $: rename
# tmux attach -t NAME
# tmux detach
########## Window actions:
bind-key c new-window -c "#{pane_current_path}"
# p: prev
# n: next
# ,: rename
########## Pane actions:
bind-key s split-window -c "#{pane_current_path}"
bind-key v split-window -h -c "#{pane_current_path}"
# alt => "-n M-"
bind-key -n M-h select-pane -L
bind-key -n M-j select-pane -D
bind-key -n M-k select-pane -U
bind-key -n M-l select-pane -R
bind-key -n M-H resize-pane -L 7
bind-key -n M-J resize-pane -D 7
bind-key -n M-K resize-pane -U 7
bind-key -n M-L resize-pane -R 7
########## Misc:
set-option -g mouse on
set-option -g default-shell /bin/bash
set -g default-terminal "screen-256color"
set -s escape-time 0
setw -g mode-keys vi # [
# Setup 'v' to begin selection as in Vim
bind-key -t vi-copy v begin-selection
bind-key -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy"