Fix error if user does not set a prompt theme

This commit is contained in:
gwjo 2012-03-11 20:24:33 -04:00
parent 02e39eaf4f
commit defc99f1ba

View file

@ -88,6 +88,7 @@ autoload -Uz promptinit && promptinit
# Load the prompt theme.
zstyle -a ':omz:prompt' theme 'prompt_argv'
[[ ${#prompt_argv} == 0 ]] && prompt_argv=("off")
prompt "$prompt_argv[@]"
unset prompt_argv