zplug --version: 2.4.1zsh --version: zsh 5.3.1 (x86_64-apple-darwin16.6.0)git --version: 2.13.4
uname -a: Darwin somehostname 16.7.0 Darwin Kernel Version 16.7.0: Thu Jun 15 17:36:27 PDT 2017; root:xnu-3789.70.16~2/RELEASE_X86_64 x86_64
# .zshrc
source ~/.zplug/init.zsh
zplug 'modules/prompt', from:prezto
zstyle ':prezto:*:*' color 'yes'
zstyle ':prezto:module:prompt' theme 'sorin'
# Install plugins if there are plugins that have not been installed
if ! zplug check; then
printf "Install new zplug-plugins? [y/N]: "
if read -q; then
echo; zplug install
fi
fi
# Then, source plugins and add commands to $PATH
zplug load
When trying to use the sorin-theme, I get the following error message:
$ prompt sorin
prompt_sorin_setup:33: command not found: pmodload
prompt_sorin_git_info:6: command not found: coalesce
@sorin-ionescu could I kindly ask that you have a look at this issue?
I'd love to use your theme.
I had the same issue. It turns out that the prezto prompt module depends on the prezto git module.
I fixed it by plugging the git module from prezto before loading the theme.
Now it works like a charm.
Relevant code:
zplug "modules/git", from:prezto
zplug "modules/prompt", from:prezto
zstyle ':prezto:module:prompt' theme 'sorin'
I just tried @JessTheBell's suggestion.
Made sure that I have zplug "modules/git", from:prezto enabled.
Completely nuked ~/.zplug and reinstalled.
Zsh force closes now.
Rolling back to previous config and reinstalling zplug fixes the force closes.
This is not working for me anymore. Does it work for you?
Still seeing the error. The above suggestions did not fix.
Most helpful comment
I had the same issue. It turns out that the prezto prompt module depends on the prezto git module.
I fixed it by plugging the git module from prezto before loading the theme.
Now it works like a charm.
Relevant code: