On Thu, Mar 24, 2011 at 10:36:58PM +0000, Neil Jerram wrote:
> More generally, I guess the same would be appropriate whenever $TERM =
> dumb, hence using that condition rather than $EMACS = t

applied, thanks

> ---
>  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

-- 
Martin 'JaMa' Jansa     jabber: [email protected]

Attachment: pgpqF0UeAqRt7.pgp
Description: PGP signature

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

Reply via email to