From 6e7f4239832abe6b8694695af4f312bb8a02badc Mon Sep 17 00:00:00 2001 From: John Schulz Date: Thu, 11 Nov 2010 11:57:47 -0500 Subject: [PATCH] =?UTF-8?q?Allow=20theming=20to=20be=20disabled=20(eg=20fo?= =?UTF-8?q?r=20old=20terminals)=20=20*=20Only=20load=20a=20theme=20file=20?= =?UTF-8?q?if=20`bobby`=20has=20been=20set=20=20*=20Only=20alter=20`PS1`?= =?UTF-8?q?=20if=20`\[=1B[1;34m\]\[$(scm=5Fchar)\]\[=1B[0;32m\]\[$(scm=5Fp?= =?UTF-8?q?rompt=5Finfo)\]\[=1B[0;34m\]\[$(rvm=5Fversion=5Fprompt)\]=20\[?= =?UTF-8?q?=1B[33;40m\]\h=20\[=1B[39m\]in=20\[=1B[0;32m\]\w=20\[=1B[39m\]\?= =?UTF-8?q?[\n\[=1B[0;32m\]=E2=86=92\[=1B[39m\]=20`=20has=20a=20value?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bash_it.sh | 5 +++-- lib/appearance.bash | 4 +++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/bash_it.sh b/bash_it.sh index f0c850c2..60bef802 100644 --- a/bash_it.sh +++ b/bash_it.sh @@ -47,8 +47,9 @@ done unset config_file -export PS1=$PROMPT - +if [[ $PROMPT ]]; then + export PS1=$PROMPT +fi # Adding Support for other OSes PREVIEW="less" diff --git a/lib/appearance.bash b/lib/appearance.bash index 4b1f568e..f7235118 100644 --- a/lib/appearance.bash +++ b/lib/appearance.bash @@ -8,4 +8,6 @@ export GREP_COLOR='1;33' export LSCOLORS='Gxfxcxdxdxegedabagacad' # Load the theme -source "$BASH/themes/$BASH_THEME/$BASH_THEME.theme.bash" \ No newline at end of file +if [[ $BASH_THEME ]]; then + source "$BASH/themes/$BASH_THEME/$BASH_THEME.theme.bash" +fi \ No newline at end of file