From 39763dece19184336b84ef6db41826baefe1e297 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Thu, 7 Jun 2012 23:39:48 +1200 Subject: Work around race condition bug in tmux It looks like tmux doesn't wait for me to finish defining my default-terminal before it opens up my new shell. This means the first window of my new tmux sessions usually humbly thinks it only has eight colours. This seems to be a known bug in tmux, so for the moment I'm just working around it with an environment variable with which .bashrc will deal. --- tmux/tmux.conf | 1 + 1 file changed, 1 insertion(+) (limited to 'tmux') diff --git a/tmux/tmux.conf b/tmux/tmux.conf index 673ca076..f9daaea2 100644 --- a/tmux/tmux.conf +++ b/tmux/tmux.conf @@ -64,6 +64,7 @@ if-shell 'test `tput colors` -eq 256' 'set-window-option -g window-status-curren if-shell 'test `tput colors` -eq 256' 'set-window-option -g window-status-format "#[fg=colour16]#I:#W#F"' # Terminal +CONTAINING_TERM=$TERM set-option -g terminal-overrides 'xterm*:smcup@:rmcup@' set-option -s escape-time 0 if-shell 'test `tput colors` -eq 256' 'set-option -g default-terminal "screen-256color"' -- cgit v1.2.3