X-Git-Url: https://git.donarmstrong.com/?p=home-base.git;a=blobdiff_plain;f=.bashrc;fp=.bashrc;h=189377b4025a45c57a279a772cd022cae57aadad;hp=99e079c86000d2a7236cc1cd7be2822d862ee87b;hb=adbc0a60adaff33a2da29b53c8085e12fb5c0d62;hpb=48088eefeaffec75acb6aa9fb4654dded9798f3f diff --git a/.bashrc b/.bashrc index 99e079c..189377b 100644 --- a/.bashrc +++ b/.bashrc @@ -36,7 +36,11 @@ if [ "$PS1" ]; then # \[\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 + TOEOPT='-a' + if ! toe $TOEOPT >/dev/null 2>&1; then + TOEOPT='' + fi; + if ! toe $TOEOPT|grep -q "^$TERM "; then # if it doesn't, try to switch case $TERM in rxvt*)