tmux won't allow window resizing. It also requires a TERM setting of
screen or screen-256color. Assume that screen or screen-256color means
tmux and screen-bce or screen-256color-bce means real screen.
trap "echo -ne '\\033]0;$info\\033\\0134'" exit
info="$info$vimchild"
fi
-if [ "${TERM##screen}" = "$TERM" ]; then
+if [ "${TERM##screen}" = "$TERM" -o "${TERM%%-bce}" = "$TERM" ]; then
PROMPT_COMMAND="echo -ne '\033]0;$info\033\0134\r\033[K'"
else
PROMPT_COMMAND='echo -ne "\033k\033\0134"'
# Can we resize this window?
case "$TERM" in
# Terminals we KNOW can't be resized.
- cygwin|linux|sun-color)
+ # screen and screen-256color are included to support tmux. Real screen
+ # will set TERM to screen-256color-bce and we drop through.
+ cygwin|linux|screen|screen-256color|sun-color)
export RESIZABLE=0
;;