Allow theming to be disabled (eg for old terminals)
authorJohn Schulz <github.com@jfsiii.org>
Thu, 11 Nov 2010 16:57:47 +0000 (11:57 -0500)
committerJohn Schulz <github.com@jfsiii.org>
Thu, 11 Nov 2010 16:57:47 +0000 (11:57 -0500)
 * Only load a theme file if `bobby` has been set
 * Only alter `PS1` if `\[\e[1;34m\]\[$(scm_char)\]\[\e[0;32m\]\[$(scm_prompt_info)\]\[\e[0;34m\]\[$(rvm_version_prompt)\] \[\e[33;40m\]\h \[\e[39m\]in \[\e[0;32m\]\w \[\e[39m\]\[\n\[\e[0;32m\]→\[\e[39m\] ` has a value

bash_it.sh
lib/appearance.bash

index f0c850c..60bef80 100644 (file)
@@ -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"
index 4b1f568..f723511 100644 (file)
@@ -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