-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path_tmux.conf
More file actions
38 lines (29 loc) · 1.01 KB
/
_tmux.conf
File metadata and controls
38 lines (29 loc) · 1.01 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
# Ctrl-a
unbind C-b
set -g prefix C-a
# split windows using the current path
bind s split-window -v -c '#{pane_current_path}'
bind v split-window -h -c '#{pane_current_path}'
# move around panes with hjkl
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# more scrollback history
set -g history-limit 100000
# vi-style controls for copy mode
set -g mode-keys vi
# enable mouse support
set -g mouse on
# prevent accidental exit by ctrl-D: http://superuser.com/a/479614
set-environment -g 'IGNOREEOF' 1
# change pane border colors
set -g pane-border-fg black
set -g pane-active-border-fg brightred
# show current path on status
set -g status-right-length 50
set -g status-right '#[fg=yellow,bg=black,bold] #(PCP=#{pane_current_path}; echo ${PCP/##$HOME/"~"}) '
# vi-style select (with v) and yank (with y), to system clipboard
bind -t vi-copy v begin-selection
bind -t vi-copy y copy-pipe 'xclip -in -selection clipboard'
bind -t vi-copy Enter copy-pipe 'xclip -in -selection clipboard'