aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTing-Wei Lan <lantw44@gmail.com>2014-04-10 20:09:37 +0800
committerTing-Wei Lan <lantw44@gmail.com>2014-04-10 20:09:37 +0800
commitd3d6273e8423320dedc66402e30dba59ef83be54 (patch)
treec5c857fedf31bda79bf58ca2d5bf89220ff604a4
parentc8b7690c7c37fa20dffba4fd65326e846793ce0a (diff)
downloadconfigfile-d3d6273e8423320dedc66402e30dba59ef83be54.tar
configfile-d3d6273e8423320dedc66402e30dba59ef83be54.tar.gz
configfile-d3d6273e8423320dedc66402e30dba59ef83be54.tar.bz2
configfile-d3d6273e8423320dedc66402e30dba59ef83be54.tar.lz
configfile-d3d6273e8423320dedc66402e30dba59ef83be54.tar.xz
configfile-d3d6273e8423320dedc66402e30dba59ef83be54.tar.zst
configfile-d3d6273e8423320dedc66402e30dba59ef83be54.zip
bash_include: 更新 JHBuild 和 Gentoo Prefix 的 PS1 訊息bash_include-20140410
-rw-r--r--bash_include8
1 files changed, 7 insertions, 1 deletions
diff --git a/bash_include b/bash_include
index 85bafad..8c64fdf 100644
--- a/bash_include
+++ b/bash_include
@@ -44,12 +44,18 @@ then
nocolorprompting="*$nocolorprompting"
fi
-if [ "$UNDER_JHBUILD" = "true" ]
+if [ "$UNDER_JHBUILD" = "true" ] || [ "$CERTIFIED_GNOMIE" = "yes" ]
then
colorprompting="$colorprompting[\[\e[1;35m\]JHBuild\[\e[m\]]"
nocolorprompting="$nocolorprompting[JHBuild]"
fi
+if [ "$EPREFIX" ]
+then
+ colorprompting="$colorprompting[\[\e[1;35m\]Prefix\[\e[m\]]"
+ nocolorprompting="$nocolorprompting[Prefix]"
+fi
+
if [ -f "$HOME/.bash_addps" ]
then
exec 3< "$HOME/.bash_addps"