path: root/tmux
diff options
authorTom Ryder <tom@sanctum.geek.nz>2017-06-15 14:56:14 +1200
committerTom Ryder <tom@sanctum.geek.nz>2017-06-15 14:56:14 +1200
commit73da0681ef299948f77c3e1c3452145012f31a3e (patch)
tree43ecb7d3f0cbcc2e490d235c2731b22536aac826 /tmux
parentStop tmux status line from forking so much (diff)
Remove color/colour templating from tmux.conf
tmux 2.4 added support for globs, which makes all of this templating nastiness go away: <https://github.com/tmux/tmux/blob/master/CHANGES#L192> A user who wants custom settings (such as me on my work system) can just drop overrides into ~/.tmux.conf.d/something.conf and go home.
Diffstat (limited to 'tmux')
-rw-r--r--tmux/tmux.conf (renamed from tmux/tmux.conf.mi5)10
1 files changed, 7 insertions, 3 deletions
diff --git a/tmux/tmux.conf.mi5 b/tmux/tmux.conf
index 27ae1417..4acf6a3d 100644
--- a/tmux/tmux.conf.mi5
+++ b/tmux/tmux.conf
@@ -110,15 +110,15 @@ set-option -g message-style "bg=colour18,fg=colour231"
set-window-option -g mode-style "bg=colour18,fg=colour231"
# Pane borders are always in the background color
-set-option -g pane-border-style "fg=<% TMUX_BG %>"
-set-option -g pane-active-border-style "fg=<% TMUX_BG %>"
+set-option -g pane-border-style "fg=colour237"
+set-option -g pane-active-border-style "fg=colour237"
# Inactive windows have slightly washed-out system colours
set-option -g window-style "bg=colour232,fg=colour248"
set-option -g window-active-style "bg=colour0,fg=colour15"
# The status bar has the defined background and foreground colours
-set-option -g status-style "bg=<% TMUX_BG %>,fg=<% TMUX_FG %>"
+set-option -g status-style "bg=colour237,fg=colour248"
# Titles of windows default to black text with no embellishment
set-window-option -g window-status-style "fg=colour16"
@@ -128,3 +128,7 @@ set-window-option -g window-status-current-style "fg=colour231"
# A window with a bell has a title with a red background until cleared
set-window-option -g window-status-bell-style "bg=colour9"
+# Source any configuration in the subdir if there is any
+if-shell 'set -- "$HOME"/.tmux.conf.d/*;test -e "$1"' \
+ 'source-file ~/.tmux.conf.d/*.conf'