-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf
75 lines (56 loc) · 2.21 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
# Default termtype. If the rcfile sets $TERM, that overrides this value.
set -g default-terminal screen-256color
# support logging out and back in
set -g update-environment "SSH_ASKPASS SSH_AUTH_SOCK SSH_AGENT_PID SSH_CONNECTION"
# Enable mouse
set -g mouse on
# ----------------------
# Status Bar
# -----------------------
set-option -g status on # turn the status bar on
set -g status-interval 2 # set update frequencey (default 15 seconds)
# Disable the date in the bottom right
set-option -g status-right-length 0
set-option -g status-right ""
# visual notification of activity in other windows
setw -g monitor-activity on
set -g visual-activity on
# control automatic window renaming
set-window-option -g automatic-rename on # auto name
setw -g automatic-rename
# scrolling with terminal scroll bar
set -g terminal-overrides 'xterm*:smcup@:rmcup@'
# window title
# enable wm window titles
set-option -g set-titles on
# wm window title string (uses statusbar variables)
set-option -g set-titles-string '#S:#I.#P #W' # window number,program name,active (or not)
# easily toggle synchronization (mnemonic: e is for echo)
# sends input to all panes in a given window.
bind e setw synchronize-panes on
bind E setw synchronize-panes off
# Bigger history
set -g history-limit 10000
# Make reloading the config easier
bind-key r source-file ~/.tmux.conf \; display-message "~/.tmux.conf reloaded"
bind-key M split-window -h "vim ~/.tmux.conf"
# Reload key
unbind R
bind R source-file ~/.tmux.conf
set -g default-command /usr/bin/fish
set -g default-shell /usr/bin/fish
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-logging'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'seebi/tmux-colors-solarized'
# Set theme
set -g @colors-solarized 'dark'
# Clipboard
set -g @yank_selection_mouse 'clipboard'
# Install the TMUX plugin manager if it's not installed
if "test ! -d ~/.tmux/plugins/tpm" \
"run 'git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm && ~/.tmux/plugins/tpm/bin/install_plugins'"
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run -b '~/.tmux/plugins/tpm/tpm'