From defc99f1ba4159d036c4849aa5866ec609ee720e Mon Sep 17 00:00:00 2001 From: gwjo Date: Sun, 11 Mar 2012 20:24:33 -0400 Subject: [PATCH] Fix error if user does not set a prompt theme --- init.zsh | 1 + 1 file changed, 1 insertion(+) diff --git a/init.zsh b/init.zsh index ec218ddc..c73a2e55 100644 --- a/init.zsh +++ b/init.zsh @@ -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