zpm-zsh/zpm

zpm tries to source files in my current directory, instead of the plugin directory

sindre-nistad opened this issue · 3 comments

Describe the bug
When starting a shell, I get an error message saying "Cannot source /<plugin.zsh>"

To Reproduce

zpm load @omz
zpm load @omz/osx

Expected behavior
I expect the plugin to be loaded, and not exit the startup procedure.

Additional context

When I look at the source code of the affected plugins, it seems that ${0:A:h}, which if often used to reference the directory of the file being sourced / executed, resolves to my current directory.

Hey @sindre-nistad . I think this is a bug in omz plugin. Can you open a issue there?

Hey @sindre-nistad I think I fixed this error in one of last commits. Can you check now?

The osx plugin was renamed to macos, you should do

zpm load @omz
zpm load @omz/macos

This can be closed.