Skip to content

Commit

Permalink
Fix prompt call, close ohmyzsh#22
Browse files Browse the repository at this point in the history
  • Loading branch information
sorin-ionescu committed Mar 12, 2012
1 parent fd669f2 commit 01d9ec1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion init.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,11 @@ autoload -Uz promptinit && promptinit

# Load the prompt theme.
zstyle -a ':omz:prompt' theme 'prompt_argv'
prompt "$prompt_argv[@]"
if (( $#prompt_argv > 0 )); then
prompt "$prompt_argv[@]"
else
prompt 'off'
fi
unset prompt_argv

# Compile the completion dump, to increase startup speed.
Expand Down

0 comments on commit 01d9ec1

Please sign in to comment.