-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf
54 lines (40 loc) · 1.45 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
# Maximum clipboard buffer
set -g default-terminal "screen-256color"
set -g buffer-limit 999999
# Set zsh as default shell
set-option -g default-shell /bin/zsh
# Scrolling
set -g mouse on
# Start window numbers at 1 to match keyboard order with tmux window order
set -g base-index 1
set-window-option -g pane-base-index 1
# Renumber windows sequentially after closing any of them
set -g renumber-windows on
# Soften status bar color from harsh green to light gray
set -g status-bg '#0a0e14'
set -g status-fg '#ff8308'
# Remove administrative debris (session name, hostname, time) in status bar
set -g status-left ''
set -g status-right '#{session_name}'
# increase scrollback lines
set -g history-limit 100000
# switch to last pane
bind C-e last-pane
# Clear screen
bind C-l send-keys 'C-l'
# Mouse scroll available
# Issue: https://github.com/tmux/tmux/issues/145#issuecomment-150736967
# Answer: http://superuser.com/a/988688
bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'copy-mode -e'"
# Syncrhonize panes
bind r set synchronize-panes
# Easier split window
bind h split-window -v -c '#{pane_current_path}'
bind v split-window -h -c '#{pane_current_path}'
# Set the plugins to be loaded by TPM
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-yank'
# Loads TPM
run '~/.tmux/plugins/tpm/tpm'