From c8524d0a67051f0d12df92db0e048ea8496f4a41 Mon Sep 17 00:00:00 2001 From: Ting-Wei Lan Date: Mon, 16 Jun 2014 16:07:10 +0800 Subject: =?UTF-8?q?bash=5Finclude:=20=E5=9C=A8=20PS1=20=E9=A1=AF=E7=A4=BA?= =?UTF-8?q?=20Software=20Collections=20=E7=92=B0=E5=A2=83=E7=8B=80?= =?UTF-8?q?=E6=85=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bash_include | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'bash_include') diff --git a/bash_include b/bash_include index 261bb53..a662f7b 100644 --- a/bash_include +++ b/bash_include @@ -50,6 +50,14 @@ then nocolorprompting="$nocolorprompting[Prefix]" fi +if [ "$X_SCLS" ] +then + scl_enabled="`echo "$X_SCLS" | sed 's/ *$//' | tr ' ' ','`" + colorprompting="$colorprompting[\[\e[1;35m\]SCL:$scl_enabled\[\e[m\]]" + nocolorprompting="$nocolorprompting[SCL:$scl_enabled]" + unset scl_enabled +fi + if [ "$UNDER_JHBUILD" = "true" ] || [ "$CERTIFIED_GNOMIE" = "yes" ] then colorprompting="$colorprompting[\[\e[1;35m\]JHBuild\[\e[m\]]" -- cgit v1.2.3