-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
52 lines (36 loc) · 1.24 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
49
50
51
#unbind-key C-b
#set-option -g prefix C-s
#bind C-s send-prefix
bind r source-file ~/.tmux.conf \; display "Reloaded"
setw -g mouse on
set -sg escape-time 1
set-option -g default-terminal screen-256color
set -g terminal-overrides 'xterm:colors=256'
set-option -g repeat-time 1000
set-option -g history-limit 10000
set-window-option -g mode-keys vi
# appearance
set -g pane-active-border-style fg="white"
set -g pane-active-border-style bg="green"
setw -g window-status-current-style bg="colour40"
set-option -g status-left '#[fg=cyan, bg=#303030]#{?client_prefix,#[reverse],} [#S] #[default]'
# window
bind-key = split-window -v
bind-key | split-window -h
#bind-key -r C-t select-window -t :+
bind-key -r C-c new-window
bind-key -r C-n next-window
bind-key -r C-p previous-window
# pane
bind-key -r h select-pane -L
bind-key -r j select-pane -D
bind-key -r k select-pane -U
bind-key -r l select-pane -R
bind-key -r H resize-pane -L 2
bind-key -r J resize-pane -D 2
bind-key -r K resize-pane -U 2
bind-key -r L resize-pane -R 2
# tmux buffer -> clipboard
bind-key -T prefix C-c run "tmux save-buffer - | xsel --clipboard --input"
# clipboard -> tmux buffer
bind-key -T prefix C-v run "tmux set-buffer -- \"$(xsel --clipboard --output)\"; tmux paste-buffer"