-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
28 lines (22 loc) · 927 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
unbind C-b
set-option -g prefix C-Space
bind C-Space send-prefix
set -g status-keys vi
setw -g mode-keys vi
bind C-h select-pane -L
bind C-j select-pane -D
bind C-k select-pane -U
bind C-l select-pane -R
bind / split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"
bind U copy-mode
unbind -T copy-mode-vi v
bind -T copy-mode-vi 'v' send -X begin-selection # Begin selection in copy mode.
bind -T copy-mode-vi 'C-v' send -X rectangle-toggle # Begin selection in copy mode.
bind -T copy-mode-vi 'y' send -X copy-selection # Yank selection in copy mode.
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -in -selection clipboard'
bind C-v set-buffer "$(xclip -o -selection clipboard)" \; paste-buffer
# unbind -t vi-copy v # Prior to version 2.4
set -g default-terminal "xterm-256color"
set-option -g set-titles on
set-option -g set-titles-string "#S / #W / #T"