-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdot-tmux.conf
More file actions
43 lines (33 loc) · 1.37 KB
/
dot-tmux.conf
File metadata and controls
43 lines (33 loc) · 1.37 KB
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
# Start windows and panes at 1, not 0
set -g base-index 1
setw -g pane-base-index 1
# Change window display
set-option -g window-status-format " #I :#W#F "
set-option -g window-status-current-format "#[fg=white,bold,bg=black][#I]:#W#F #[default]"
set-option -g window-status-separator "#[fg=white,bold,bg=yellow]|#[default]"
# Default colors
set -g default-terminal "xterm-256color"
# Mouse mode
set -g mouse on
# split panes using | and -
unbind '"'
unbind %
# Make sure to create new pane in the same path
bind | split-window -h -c '#{pane_current_path}'
bind - split-window -v -c '#{pane_current_path}'
# use HJKL to move between windows (vim-style)
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Enable vim movement keys in copy mode
set-window-option -g mode-keys vi
# set -s set-clipboard external
# Yank to system clipboard vith Y key
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -i -selection clipboard'
# Yank to mouse clipboard with mouse drag
bind -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "xclip -i -selection primary"
# Paste from system clipboard with C-b +
bind + run -b "xclip -o -selection clipboard | tmux load-buffer - && tmux paste-buffer -s ' '"
# Paste from mouse clipboard with C-b *
bind * run -b "xclip -o -selection primary | tmux load-buffer - && tmux paste-buffer -s ' '"