diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2012-06-07 23:39:48 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2012-06-07 23:39:48 +1200 |
commit | 39763dece19184336b84ef6db41826baefe1e297 (patch) | |
tree | e2e5cb56cb00c66bd94bc9f6b4b0763c570ee78e /tmux | |
parent | Use colorcolumn limit in Markdown if available (diff) | |
download | dotfiles-39763dece19184336b84ef6db41826baefe1e297.tar.gz dotfiles-39763dece19184336b84ef6db41826baefe1e297.zip |
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.
Diffstat (limited to 'tmux')
-rw-r--r-- | tmux/tmux.conf | 1 |
1 files changed, 1 insertions, 0 deletions
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"' |