X-Git-Url: https://git.donarmstrong.com/?p=home-base.git;a=blobdiff_plain;f=.bashrc;fp=.bashrc;h=99e079c86000d2a7236cc1cd7be2822d862ee87b;hp=e0af9c23564be586bad131236caf407f8d2a016d;hb=48088eefeaffec75acb6aa9fb4654dded9798f3f;hpb=00e1ec9e64437e58956bf93271ca9e05fcb7698d diff --git a/.bashrc b/.bashrc index e0af9c2..99e079c 100644 --- a/.bashrc +++ b/.bashrc @@ -35,6 +35,21 @@ if [ "$PS1" ]; then PS1="\[\033[0;36m\]\h \t \w$\[\033[0m\] " # \[\033[1;36m\][\w]\n\[\033[0;36m\][\h|\t]$ \[\033[0m\] + # make sure the term we're using exists in the termcap + if ! toe -a|grep -q "^$TERM "; then + # if it doesn't, try to switch + case $TERM in + rxvt*) + TERM="rxvt" + ;; + xterm*) + TERM="xterm" + ;; + *) + ;; + esac + export TERM; + fi; # If this is an xterm set the title to user@host:dir case $TERM in screen|xterm*)