-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
zpm load @omz doesn't appear to actually initialise OMZ #24
Comments
Hi @novirium. The main problem is that ohmyzsh and zpm are package managers, so theoretically you don't need ohmyzsh if you use zpm. But ohmyzsh has a large list of integrate plugins, so I can't ignore it. Any omz plugin, theme or file form |
Gotcha 👍. So the comment in the readme about making sure to add I guess the For future reference, the suggested way to load OMZ plugins and themes would then be like this? # Pull in OMZ (doesn't actually source anything)
zpm load @omz
# Load any OMZ libraries we want or our OMZ plugins require
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/spectrum \
@omz-lib/theme-and-appearance
# Load some OMZ plugins and theme
zpm load \
@omz/virtualenv \
@omz/git
zpm load @omz-theme/robbyrussell |
Yes, you are absolutely right. You understood me correctly. I will change the README to avoid such misunderstandings. |
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 rootoh-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 runningzpm load @omz
after cleaning zpm shows: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 likelib/compfix.zsh
I'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?
The text was updated successfully, but these errors were encountered: