Add ability to disable theme

This commit is contained in:
Andrew Hite 2013-09-25 11:27:10 -05:00
commit 55a70b4433
2 changed files with 32 additions and 26 deletions

View file

@ -28,6 +28,8 @@ else
SCREEN_NO="" SCREEN_NO=""
fi fi
if [ "$DISABLE_THEME" != "true" ]
then
# Apply theming defaults # Apply theming defaults
PS1="%n@%m:%~%# " PS1="%n@%m:%~%# "
@ -39,4 +41,5 @@ ZSH_THEME_GIT_PROMPT_CLEAN="" # Text to display if the branch is c
# Setup the prompt with pretty colors # Setup the prompt with pretty colors
setopt prompt_subst setopt prompt_subst
fi

View file

@ -68,6 +68,8 @@ for config_file ($ZSH_CUSTOM/*.zsh(N)); do
done done
unset config_file unset config_file
if [ "$DISABLE_THEME" != "true" ]
then
# Load the theme # Load the theme
if [ "$ZSH_THEME" = "random" ] if [ "$ZSH_THEME" = "random" ]
then then
@ -91,3 +93,4 @@ else
fi fi
fi fi
fi fi
fi