From 6e7f4239832abe6b8694695af4f312bb8a02badc Mon Sep 17 00:00:00 2001 From: John Schulz Date: Thu, 11 Nov 2010 11:57:47 -0500 Subject: [PATCH] =?utf8?q?Allow=20theming=20to=20be=20disabled=20(eg=20for?= =?utf8?q?=20old=20terminals)=20=20*=20Only=20load=20a=20theme=20file=20if?= =?utf8?q?=20`bobby`=20has=20been=20set=20=20*=20Only=20alter=20`PS1`=20if?= =?utf8?q?=20`\[=1B[1;34m\]\[$(scm=5Fchar)\]\[=1B[0;32m\]\[$(scm=5Fprompt?= =?utf8?q?=5Finfo)\]\[=1B[0;34m\]\[$(rvm=5Fversion=5Fprompt)\]=20\[=1B[33;?= =?utf8?q?40m\]\h=20\[=1B[39m\]in=20\[=1B[0;32m\]\w=20\[=1B[39m\]\[\n\[=1B?= =?utf8?q?[0;32m\]=E2=86=92\[=1B[39m\]=20`=20has=20a=20value?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 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 f0c850c..60bef80 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 4b1f568..f723511 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 -- 2.17.1