-
Notifications
You must be signed in to change notification settings - Fork 1
/
tmux.conf
99 lines (76 loc) · 2.37 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
# sane prefix
set -g prefix C-q
# fix vim escape!
set-option -sg escape-time 50
# split bindings
unbind %
bind \\ split-window -h -c '#{pane_current_path}'
bind - split-window -v -c '#{pane_current_path}'
# alt-bindings instead of prefix'd
# bind a copy mode key
bind -n m-c copy-mode
# bind a zoom key
bind -n m-z resize-pane -Z
# bind a paste key
bind -n m-p paste-buffer
# bind a yank key
bind -T copy-mode-vi y send-keys -X copy-selection
# bind a reload key
bind -n m-r source-file ~/.tmux.conf \; display-message "Config reloaded."
# bind a command prompt key
bind -n m-\; command-prompt
# bind a layout switch key
bind -n m-bspace next-layout
# bind a synchronize panes key
bind -n m-w setw synchronize-panes
# bind a scroll up key
bind -n pageup copy-mode -u
# add a popup
bind -n m-g popup -h 75% -w 75% -E
# select pane
bind -n m-k select-pane -U
bind -n m-j select-pane -D
bind -n m-h select-pane -L
bind -n m-l select-pane -R
# split window
bind -n m-"'" split-window -v -c '#{pane_current_path}'
bind -n m-- split-window -v -c '#{pane_current_path}'
bind -n m-\\ split-window -h -c '#{pane_current_path}'
# select window
bind -n m-n prev
bind -n m-m next
bind -n m-, movew -r \; neww -c '#{pane_current_path}'
# manage sessions
bind -n m-a command-prompt 'new-session -s %%'
bind -n m-s choose-session
bind -n m-d detach
bind -n m-f command-prompt 'rename-session %%'
bind -n m-q confirm-before kill-session
# show messages for a longer time and in a readable font
set -g display-time 2000
set -g message-style fg=blue,bg=black
# turn on mouse scrolling
set -g mouse on
# custom status
set -g status on
set -g status-interval 10
set -g status-fg white
set -g status-bg black
set -g status-left "#[fg=brightcyan]#S #[fg=white]| "
set -g status-left-length 40
set -g status-right "#(date +'%_I:%M%P')"
set -g status-justify left
set -g window-status-format "#T"
set -g window-status-style fg=white
set -g window-status-current-format "#T"
set -g window-status-current-style fg=cyan
set -g window-status-separator " | "
# highlight the
set -g mode-keys vi
set -g mode-style fg=brightcyan,bg=default
# set a title string
set -g set-titles on
set -g set-titles-string '#T'
# highlight the window separators in black
setw -g pane-border-style fg=black
setw -g pane-active-border-style fg=black