From 13e73eded5e9592411e8c79d655079bed328654c Mon Sep 17 00:00:00 2001 From: James Bunton Date: Wed, 27 Jul 2016 09:31:30 +1000 Subject: [PATCH] bash: use screen-256color-bce --- .bash/interactive | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.bash/interactive b/.bash/interactive index 492b297..bfff61c 100644 --- a/.bash/interactive +++ b/.bash/interactive @@ -1,5 +1,13 @@ #! bash +# 256 color terminal +if [[ "$TERM" =~ ^xterm ]]; then + export TERM=xterm-256color +fi +if [[ "$TERM" =~ ^screen ]]; then + export TERM=screen-256color-bce +fi + # Check for unsupported TERM variable if ! tput init &> /dev/null; then echo "Warning! TERM=$TERM unsupported, using TERM=xterm" @@ -94,14 +102,6 @@ if [[ "$TERM" =~ ^screen ]]; then PROMPT_COMMAND="${DISPLAY_TITLE_COMMAND}; echo -ne '\033k\033\\'" fi -# 256 color terminal -if [ "$TERM" = "xterm" ]; then - export TERM=xterm-256color -fi -if [ "$TERM" = "screen-s" ]; then - export TERM=screen-256color-s -fi - # Useful aliases alias ls='ls --color=auto -v' alias ll='ls -hlF' -- 2.39.2