-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtmux.conf
83 lines (63 loc) · 2.28 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
set -g prefix C-s
unbind C-b
set -g escape-time 1
setw -g base-index 1
setw -g pane-base-index 1
set -g status-justify centre
#
# APPEARANCE
#
set -g default-terminal "screen-256color"
# set-option -g terminal-overrides "xterm*:colors=256"
# set-option -g terminal-overrides "xterm:colors=256"
# set the status line's colors
set -g status-style fg=white,bg=black
# Refresh status line every minute
set -g status-interval 60
# Command / message line
set -g message-style fg=white,bg=black,bright
# Status line right side
set -g status-right "%d %b %R"
# Status line left side
set -g status-left-length 40
set -g status-left "#h"
# set colors for the active window
setw -g window-status-current-style fg=white,bg="#005f00",bright
#
# BEHAVIOR
#
# PREFIX r reloads tmux config
bind r source-file ~/.tmux.conf \; display "Reloaded!"
# Decent copy-paste integration using Vim bindings following advice from:
# https://gist.github.com/brendanhay/1769870#gistcomment-588284
setw -g mode-keys vi
bind-key -T edit-mode-vi Up send-keys -X history-up
bind-key -T edit-mode-vi Down send-keys -X history-down
bind-key -T copy-mode-vi v send -X begin-selection
bind-key -T copy-mode-vi [ send-keys -X begin-selection
bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "pbcopy"
bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "pbcopy"
bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "pbcopy"
bind-key -T copy-mode-vi ] send-keys -X copy-selection
# enable visual activity alerts
setw -g monitor-activity on
set -g visual-activity on
bind | split-window -h
bind - split-window -v
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind H resize-pane -L 5
bind J resize-pane -D 5
bind K resize-pane -U 5
bind L resize-pane -R 5
set-option -g default-shell /bin/zsh
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
# Session management. Use prefix + g to switch to session by name
set -g @plugin 'tmux-plugins/tmux-sessionist'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'