In a recent change to the Readme, ZPM suggests to run zpm load @omz before loading any OMZ plugins or themes. I was assuming this is intended to source the root oh-my-zsh.sh file in the OMZ repository, which does some setup and loads all the framework libraries. This doesn't appear to work at the moment though - turning on debugging and running zpm load @omz after cleaning zpm shows:
zpm:init Initialize '@omz'
zpm:init:source Plugin file for @omz is missing
Trying to do this manually with zpm load @omz,source:oh-my-zsh.sh does work the first time, but when the cached version tries to run next time I open the shell there's messiness with the $ZSH variable pointing to the ZPM cache, so it can't find files from the OMZ repository like lib/compfix.zsh
I'm currently getting around most of this successfully just by manually loading all of the individual OMZ libraries I need instead:
zpm load \
@omz-lib/compfix \
@omz-lib/completion \
@omz-lib/directories \
@omz-lib/functions \
@omz-lib/git \
@omz-lib/grep \
@omz-lib/history \
@omz-lib/key-bindings \
@omz-lib/misc \
@omz-lib/nvm \
@omz-lib/spectrum \
@omz-lib/theme-and-appearance
What is the recommended way to get OMZ plugins running via ZPM?
In a recent change to the Readme, ZPM suggests to run
zpm load @omzbefore loading any OMZ plugins or themes. I was assuming this is intended to source the rootoh-my-zsh.shfile in the OMZ repository, which does some setup and loads all the framework libraries. This doesn't appear to work at the moment though - turning on debugging and runningzpm load @omzafter cleaning zpm shows:Trying to do this manually with
zpm load @omz,source:oh-my-zsh.shdoes work the first time, but when the cached version tries to run next time I open the shell there's messiness with the$ZSHvariable pointing to the ZPM cache, so it can't find files from the OMZ repository likelib/compfix.zshI'm currently getting around most of this successfully just by manually loading all of the individual OMZ libraries I need instead:
What is the recommended way to get OMZ plugins running via ZPM?