Fix error if user does not set a prompt theme
This commit is contained in:
parent
02e39eaf4f
commit
defc99f1ba
1 changed files with 1 additions and 0 deletions
1
init.zsh
1
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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue