-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
58 lines (41 loc) · 1.55 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
52
53
54
55
56
57
58
# change prefix
set-option -g prefix C-t
#bind-key C-t send-prefix
bind-key C-t run "tmux last-pane || tmux last-window || tmux new-window"
unbind-key C-b
set-option -g default-terminal screen-256color
set-option -g history-limit 1000000
set-window-option -g automatic-rename on
set-window-option -g monitor-activity on
set-window-option -g visual-activity off
# keys
set -s escape-time 0
bind-key C-c new-window
bind-key C-n next-window
bind-key C-p previous-window
bind-key d confirm-before detach
bind-key C-r source-file ~/.tmux.conf \; display "Reloaded!!1 .tmux.conf"
bind-key | split-window -h
bind-key - split-window -v
bind-key C-[ copy-mode \; display "Copy mode!!1"
bind-key C-] paste-buffer
set-window-option -g mode-keys vi
bind-key -T copy-mode-vi v send -X begin-selection
unbind -T copy-mode-vi Enter
bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "pbcopy"
bind-key C-h select-pane -L
bind-key C-j select-pane -D
bind-key C-k select-pane -U
bind-key C-l select-pane -R
# status line
set-option -g status-style bg=black,fg=white
set-option -g status-left ' #[fg=blue]#I#[default] #[fg=yellow]|#[default]'
set-option -g status-right '#[fg=yellow]|#[default] #[fg=green]#H#[default] '
set-option -g status-left-length 20
set-option -g status-right-length 50
set-window-option -g window-status-current-style bg=black,fg=red,bold
set-window-option -g window-status-format " #I.#W"
set-window-option -g window-status-current-format " #I.#W"
# pane
set-option -g pane-border-style fg=black
set-option -g pane-active-border-style fg=blue