-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtmux.conf
48 lines (37 loc) · 1.41 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
44
45
46
47
48
# improve colors
set -g default-terminal 'screen-256color'
# decrease time spent waiting for meta combos when escape is pressed
set -g escape-time 0
# start window numbers at 1 to match keyboard order with tmux window order
set -g base-index 1
set-window-option -g pane-base-index 1
# renumber windows sequentially after closing any of them
set -g renumber-windows on
# remove administrative debris (session name, hostname, time) in status bar
set -g status-left ''
set -g status-right ''
set -g status-position top
set -g status-style "bg=default,underscore"
set -g window-status-current-style "fg=black"
# remove window flags
set -g window-status-format "#I:#W"
set -g window-status-current-format "#I:#W"
# increase scrollback lines
set -g history-limit 10000
# enable mouse scrollback and cursor selection
# set -g mode-mouse on
# enable mouse actions across panes
# set -g mouse-select-pane off
# override % and " to split in current directory
bind-key '"' split-window -c "#{pane_current_path}"
bind-key '%' split-window -h -c "#{pane_current_path}"
# add C to open new window in current directory
bind-key 'C' new-window -c "#{pane_current_path}"
# move with vim directions
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# enable copy / paste from X clipboard
bind-key -t vi-copy y copy-pipe "xsel -i -p -b"
bind-key P run "xsel -o -p -b | tmux load-buffer - ; tmux paste-buffer"