1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2024-12-23 01:17:59 +00:00

Fix prompt call, close #22

This commit is contained in:
Sorin Ionescu 2012-03-12 19:56:03 -04:00
parent fd669f22a4
commit 01d9ec13d8

View File

@ -88,7 +88,11 @@ autoload -Uz promptinit && promptinit
# Load the prompt theme. # Load the prompt theme.
zstyle -a ':omz:prompt' theme 'prompt_argv' zstyle -a ':omz:prompt' theme 'prompt_argv'
if (( $#prompt_argv > 0 )); then
prompt "$prompt_argv[@]" prompt "$prompt_argv[@]"
else
prompt 'off'
fi
unset prompt_argv unset prompt_argv
# Compile the completion dump, to increase startup speed. # Compile the completion dump, to increase startup speed.