From 3e2ecba3181f81f3f3cdb37e5ae311c6a530a2fa Mon Sep 17 00:00:00 2001 From: Maik Date: Sat, 11 Nov 2017 18:02:04 +0100 Subject: [PATCH] bash-it themes must not set the TERM variable. The used terminal emulator is responsible to set this variable correctly. --- themes/axin/axin.theme.bash | 4 ---- themes/binaryanomaly/binaryanomaly.theme.bash | 8 +------- themes/sexy/sexy.theme.bash | 4 ---- 3 files changed, 1 insertion(+), 15 deletions(-) diff --git a/themes/axin/axin.theme.bash b/themes/axin/axin.theme.bash index edca238b..e398cb18 100644 --- a/themes/axin/axin.theme.bash +++ b/themes/axin/axin.theme.bash @@ -3,10 +3,6 @@ # Axin Bash Prompt, inspired by theme "Sexy" and "Bobby" # thanks to them -if [[ $COLORTERM = gnome-* && $TERM = xterm ]] && infocmp gnome-256color >/dev/null 2>&1; then export TERM=gnome-256color -elif [[ $TERM != dumb ]] && infocmp xterm-256color >/dev/null 2>&1; then export TERM=xterm-256color -fi - if tput setaf 1 &> /dev/null; then if [[ $(tput colors) -ge 256 ]] 2>/dev/null; then MAGENTA=$(tput setaf 9) diff --git a/themes/binaryanomaly/binaryanomaly.theme.bash b/themes/binaryanomaly/binaryanomaly.theme.bash index 4c580eb5..61573d54 100644 --- a/themes/binaryanomaly/binaryanomaly.theme.bash +++ b/themes/binaryanomaly/binaryanomaly.theme.bash @@ -1,13 +1,7 @@ #!/usr/bin/env bash -# Set term to 256color mode, if 256color is not supported, colors won't work properly -if [[ $COLORTERM = gnome-* && $TERM = xterm ]] && infocmp gnome-256color >/dev/null 2>&1; then - export TERM=gnome-256color -elif infocmp xterm-256color >/dev/null 2>&1; then - export TERM=xterm-256color -fi -# Detect whether a rebbot is required +# Detect whether a reboot is required function show_reboot_required() { if [ ! -z "$_bf_prompt_reboot_info" ]; then if [ -f /var/run/reboot-required ]; then diff --git a/themes/sexy/sexy.theme.bash b/themes/sexy/sexy.theme.bash index 60e00ec7..08869a3b 100644 --- a/themes/sexy/sexy.theme.bash +++ b/themes/sexy/sexy.theme.bash @@ -2,10 +2,6 @@ # Screenshot: http://cloud.gf3.ca/M5rG # A big thanks to \amethyst on Freenode -if [[ $COLORTERM = gnome-* && $TERM = xterm ]] && infocmp gnome-256color >/dev/null 2>&1; then export TERM=gnome-256color -elif [[ $TERM != dumb ]] && infocmp xterm-256color >/dev/null 2>&1; then export TERM=xterm-256color -fi - if tput setaf 1 &> /dev/null; then if [[ $(tput colors) -ge 256 ]] 2>/dev/null; then MAGENTA=$(tput setaf 9)