aboutsummaryrefslogtreecommitdiff
path: root/tmux/tmux.conf
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-10-29 22:55:45 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-10-29 22:55:45 +1300
commit54553aea6bf5281ccd3975d7dfaa2b8035941dcf (patch)
treef31673b76f01c0736751eedf6b9d15de8d60fc5e /tmux/tmux.conf
parentTest whether to load sahara colorscheme (diff)
downloaddotfiles-54553aea6bf5281ccd3975d7dfaa2b8035941dcf.tar.gz
dotfiles-54553aea6bf5281ccd3975d7dfaa2b8035941dcf.zip
Allow and track COLORFGBG/TERM env vars in tmux
Stop stripping them from the session on startup, and update them in the environment when new windows are reattached. This will allow me to use light-background terminals in future if I need to and have Vim accommodate it for syntax highlighting, at least in new windows.
Diffstat (limited to 'tmux/tmux.conf')
-rw-r--r--tmux/tmux.conf4
1 files changed, 1 insertions, 3 deletions
diff --git a/tmux/tmux.conf b/tmux/tmux.conf
index 4e277515..2eb1665a 100644
--- a/tmux/tmux.conf
+++ b/tmux/tmux.conf
@@ -1,7 +1,5 @@
# Strip out a lot of machine and X11 dependent crap from the initial
# environment
-set-environment -gru COLORFGBG
-set-environment -gru COLORTERM
set-environment -gru DISPLAY
set-environment -gru SSH_CLIENT
set-environment -gru SSH_CONNECTION
@@ -10,7 +8,7 @@ set-environment -gru WINDOWID
# Otherwise, use the environment we had when we started; don't touch it during
# a session unless I specifically ask
-set-option -g update-environment ''
+set-option -g update-environment 'COLORFGBG COLORTERM'
# Setting this makes each new pane a non-login shell, which suits me better
set-option -g default-command "$SHELL"