2019-06-16 10:18:43 +00:00
|
|
|
# vi:syntax=tmux
|
2017-12-17 13:16:02 +00:00
|
|
|
# Reload the config with the "r" key
|
|
|
|
bind r source-file ~/.tmux.conf \; display-message "Config reloaded..."
|
|
|
|
|
|
|
|
# No automatic renaming of windows
|
2019-05-29 17:49:29 +00:00
|
|
|
set automatic-rename off
|
2017-12-17 13:16:02 +00:00
|
|
|
|
|
|
|
# Enable 256-color terminal
|
2019-05-29 17:49:29 +00:00
|
|
|
set default-terminal "screen-256color"
|
2017-12-17 13:16:02 +00:00
|
|
|
|
2017-12-22 22:15:40 +00:00
|
|
|
# Set titles to be informative
|
2019-05-29 17:49:29 +00:00
|
|
|
set set-titles on
|
|
|
|
set set-titles-string "tmux: [#H] [#S] [#W:#D #I:#P]"
|
2017-12-22 11:05:34 +00:00
|
|
|
|
2019-05-29 17:49:29 +00:00
|
|
|
# Change pane colors
|
2019-06-16 10:18:43 +00:00
|
|
|
set -g pane-border-style fg=colour237
|
|
|
|
set -g pane-active-border-style fg=colour199
|
2017-12-22 11:05:34 +00:00
|
|
|
|
2019-05-29 17:49:29 +00:00
|
|
|
# Tweak currently active window
|
2019-06-16 10:18:43 +00:00
|
|
|
setw -g window-status-current-style bg=colour199,fg=colour255,none
|
2019-06-15 21:19:21 +00:00
|
|
|
setw -g window-status-current-format " #F[#W] "
|
2019-06-16 10:18:43 +00:00
|
|
|
# Tweak last active window style
|
|
|
|
setw -g window-status-last-style fg=colour255,bg=colour238,none
|
2017-12-22 22:15:40 +00:00
|
|
|
|
2019-05-29 17:49:29 +00:00
|
|
|
# Tweak display of window overview
|
2019-06-15 21:19:21 +00:00
|
|
|
setw -g window-status-format " #F[#W][#I] "
|
2019-06-16 10:18:43 +00:00
|
|
|
setw -g window-status-style bg=colour233,fg=colour255,none
|
2017-12-22 22:15:40 +00:00
|
|
|
|
|
|
|
# Tweak status line design
|
2019-06-16 10:18:43 +00:00
|
|
|
set -g status-style bg=colour235,fg=colour199
|
2019-05-29 17:49:29 +00:00
|
|
|
set status-justify centre
|
|
|
|
set status-left " [#H] [#S] "
|
|
|
|
set status-left-length 100
|
2019-06-18 18:44:37 +00:00
|
|
|
set status-right '[%Y-%m-%d %H:%M.%S]'
|
2019-05-29 17:49:29 +00:00
|
|
|
# Refresh status bar every 2s
|
|
|
|
set status-interval 2
|
2017-12-22 11:05:34 +00:00
|
|
|
|
2019-05-29 18:10:25 +00:00
|
|
|
# Set some helpful limits & modes
|
2019-05-30 20:01:14 +00:00
|
|
|
set -g mouse off
|
2019-05-29 18:10:25 +00:00
|
|
|
set -g history-limit 50000
|
2019-05-29 18:04:55 +00:00
|
|
|
|
2019-05-29 18:13:17 +00:00
|
|
|
# Make tmux resize based on smallest client actually viewing the window, not just attached
|
|
|
|
setw -g aggressive-resize on
|
|
|
|
|
2017-12-22 11:05:34 +00:00
|
|
|
# Initialize tmux-plugin-manager
|
|
|
|
run '~/.tmux/plugins/tpm/tpm'
|