From adbc0a60adaff33a2da29b53c8085e12fb5c0d62 Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Fri, 28 Sep 2007 19:13:11 +0000 Subject: [PATCH] * Handle older versions of toe --- .bashrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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*) -- 2.39.5