From 6ca601931fa6435f15ecd9758b9a416986878659 Mon Sep 17 00:00:00 2001 From: Sonny Date: Tue, 29 Jan 2019 13:28:18 +0100 Subject: [PATCH] Set term when it is not set yet --- .bashrc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.bashrc b/.bashrc index 5bb60d2..2d82cbc 100644 --- a/.bashrc +++ b/.bashrc @@ -25,6 +25,11 @@ shopt -s checkwinsize # make less more friendly for non-text input files, see lesspipe(1) [ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)" +# set term if it is not set yet by the terminal +if [ -z "$TERM" ]; then + export TERM="tmux-256color" +fi + # set a fancy prompt (non-color, unless we know we "want" color) case "$TERM" in xterm-color|*-256color) color_prompt=yes;;