-
Notifications
You must be signed in to change notification settings - Fork 1
/
tmux.conf
48 lines (37 loc) · 1.3 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
# configuration reload
bind r source-file ~/.tmux.conf\; display "Reloaded!"
# sending ctrl-a to the apps
bind C-a send-prefix
bind | split-window -h
bind - split-window -v
# movement
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# resize
bind -r H resize-pane -L 5
bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
bind -r L resize-pane -R 5
set -g mouse off
set -g default-terminal "screen-256color"
set -g status-style fg=white,bold,bg=black
set -g window-status-style fg=cyan,bg=black
set -g window-status-current-style fg=white,bold,bg=red
set -g status-left-length 40
set -g status-left "#[fg=green]#S #[fg=yellow]#I #[fg=cyan]#P "
set -g status-right "#[fg=cyan]%d %b %R"
set -g status-interval 60
set -g status-justify centre
# enable activity alerts
setw -g monitor-activity on
set -g visual-activity on
bind Escape copy-mode
bind-key -T copy-mode-vi v send -X begin-selection
# integration with mac os clipboard
bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "pbcopy"
unbind p
bind p run "tmux set-buffer \"$(pbpaste)\"; tmux paste-buffer"
# copy and paste into next pane (repl like experience)
bind-key -T copy-mode-vi C-p run "tmux send-keys -X copy-selection-and-cancel; tmux select-pane -l; tmux paste-buffer; tmux send-keys C-m; tmux select-pane -l"