From 2e2abd1361760c2037ec75f644cf75ef54943f7b Mon Sep 17 00:00:00 2001 From: Ting-Wei Lan Date: Tue, 10 Jun 2014 02:42:02 +0800 Subject: =?UTF-8?q?bash=5Finclude:=20=E5=9C=A8=20PS1=20=E9=A1=AF=E7=A4=BA?= =?UTF-8?q?=E8=83=8C=E6=99=AF=E5=B7=A5=E4=BD=9C=E6=95=B8=E9=87=8F=E5=92=8C?= =?UTF-8?q?=20Android=20=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bash_include | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'bash_include') diff --git a/bash_include b/bash_include index 67cea7e..261bb53 100644 --- a/bash_include +++ b/bash_include @@ -35,8 +35,8 @@ if [[ "$-" == *i* ]] ; then interactive_shell=1; fi # Internal Variables -colorprompting='\[\e[1;31m\]\!\[\e[m\] \[\e[35m\]$tty_short\[\e[m\][\[\e[1;33m\]\u\[\e[m\]@\[\e[1;32m\]\h\[\e[m\] \[\e[1;36m\]\w\[\e[m\]]' -nocolorprompting='\! $tty_short[\u@\h \w]' +colorprompting='\[\e[1;31m\]\!\[\e[m\] \[\e[35m\]$tty_short\[\e[m\][\[\e[1;33m\]\u\[\e[m\]@\[\e[1;32m\]\h\[\e[m\] \[\e[1;36m\]\w\[\e[m\]]\[\e[44;37m\] \j \[\e[m\]' +nocolorprompting='\! $tty_short[\u@\h \w] \j ' if [ "$SSH_CONNECTION" ] then @@ -44,16 +44,22 @@ then nocolorprompting="*$nocolorprompting" fi +if [ "$EPREFIX" ] +then + colorprompting="$colorprompting[\[\e[1;35m\]Prefix\[\e[m\]]" + nocolorprompting="$nocolorprompting[Prefix]" +fi + if [ "$UNDER_JHBUILD" = "true" ] || [ "$CERTIFIED_GNOMIE" = "yes" ] then colorprompting="$colorprompting[\[\e[1;35m\]JHBuild\[\e[m\]]" nocolorprompting="$nocolorprompting[JHBuild]" fi -if [ "$EPREFIX" ] +if [ "$ANDROID_BUILD_TOP" ] then - colorprompting="$colorprompting[\[\e[1;35m\]Prefix\[\e[m\]]" - nocolorprompting="$nocolorprompting[Prefix]" + colorprompting="$colorprompting[\[\e[1;35m\]Android\[\e[m\]]" + nocolorprompting="$nocolorprompting[Android]" fi if [ -f "$HOME/.bash_addps" ] -- cgit v1.2.3