aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schlemmer <azarah@gentoo.org>2006-07-06 09:27:39 +0000
committerMartin Schlemmer <azarah@gentoo.org>2006-07-06 09:27:39 +0000
commit857ee9bc6b0100716986caefdc005be8d023ae76 (patch)
treec8b3be5425c18109097eec8957f818789982e460
parentRemove last libsandbox-only functions in favour for ones provided (diff)
downloadsandbox-857ee9bc6b0100716986caefdc005be8d023ae76.tar.gz
sandbox-857ee9bc6b0100716986caefdc005be8d023ae76.tar.bz2
sandbox-857ee9bc6b0100716986caefdc005be8d023ae76.zip
Fixup color handling.
Signed-off-by: Martin Schlemmer <azarah@gentoo.org>
-rw-r--r--data/sandbox.bashrc4
1 files changed, 3 insertions, 1 deletions
diff --git a/data/sandbox.bashrc b/data/sandbox.bashrc
index a0d91e4..74c7c97 100644
--- a/data/sandbox.bashrc
+++ b/data/sandbox.bashrc
@@ -21,6 +21,8 @@ if [[ ${SANDBOX_INTRACTV} == "1" ]] ; then
source /etc/profile
(
+ [[ ${NOCOLOR} == "true" || ${NOCOLOR} == "yes" || ${NOCOLOR} == "1" ]] && \
+ export RC_NOCOLOR="yes"
source /sbin/functions.sh
echo
einfo "Loading sandboxed shell"
@@ -75,7 +77,7 @@ if [[ ${SANDBOX_INTRACTV} == "1" ]] ; then
unset sbs_gpdir sbs_cpdir sbs_pdir sbs_bdir sbs_tmpenvfile sbs_PREPWD env
cd "${PWD}"
- if [[ ${NOCOLOR} != "true" || ${NOCOLOR} != "yes" || ${NOCOLOR} != "1" ]] ; then
+ if [[ ${NOCOLOR} != "true" && ${NOCOLOR} != "yes" && ${NOCOLOR} != "1" ]] ; then
export PS1="\e[31;01m[s]\e[0m ${PS1}"
else
export PS1="[s] ${PS1}"