From 505abe28e43a0cc3902abf291c0eaf4c3c83e71f Mon Sep 17 00:00:00 2001 From: hjp Date: Mon, 12 Oct 2009 12:56:39 +0000 Subject: [PATCH] fall back to xterm if xterm-256color isn't available --- .znewterm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.znewterm b/.znewterm index ecb7bc2..30c6e8d 100644 --- a/.znewterm +++ b/.znewterm @@ -23,6 +23,11 @@ then stty erase  fi +if [[ $TERM == xterm-256color && ! -f /usr/share/terminfo/x/xterm-256color ]] +then + TERM=xterm +fi + if [[ $TERM = xterm || $TERM = xterm-256color ]] then # indicated exit status by smiley (suggested by Stig Sandbeck Mathisen)