More generally, I guess the same would be appropriate whenever $TERM =
dumb, hence using that condition rather than $EMACS = t
---
 setup-env |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/setup-env b/setup-env
index e17ea9d..10ac48e 100644
--- a/setup-env
+++ b/setup-env
@@ -49,5 +49,9 @@ alias bb="bitbake"
 # remove TOPDIR - not required
 unset TOPDIR
 
-export PS1='\[\033[01;32m\]OE $MACHINE@$DISTRO\[\033[01;34m\] \w 
\$\[\033[00m\] '
+if [ ${TERM:-dumb} = dumb ]; then
+   export PS1='OE $MACHINE@$DISTRO \w \$ '
+else
+   export PS1='\[\033[01;32m\]OE $MACHINE@$DISTRO\[\033[01;34m\] \w 
\$\[\033[00m\] '
+fi
 echo "Altered environment for ${MACHINE}@${DISTRO} development"
-- 
1.7.1

_______________________________________________
Shr-devel mailing list
[email protected]
http://lists.shr-project.org/mailman/listinfo/shr-devel

Reply via email to