diff options
Diffstat (limited to 'bash/bashrc')
-rw-r--r-- | bash/bashrc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/bash/bashrc b/bash/bashrc index 569b56be..1f48ffc1 100644 --- a/bash/bashrc +++ b/bash/bashrc @@ -119,6 +119,15 @@ case "$TERM" in xterm*) PS1='\[\e]0;\h\a\]'${PS1};; esac +# If we're a screen terminal within a 256 color outer, force a 256 color +# screen terminal too. This deals with a tmux race condition bug. +case "$CONTAINING_TERM" in + *256color) + TERM=screen-256color + unset CONTAINING_TERM + ;; +esac + # Alias ls and grep with the options we've collected. alias ls="ls ${LS_OPTS}" alias grep="grep ${GREP_OPTS}" |