-
-
Notifications
You must be signed in to change notification settings - Fork 230
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
zplug "repos/custom", from:local: not found, $ZPLUG_HOME empty #207
Comments
Thanks for reporting!
That doesn't sound right. Are you doing that after Following these steps I was able to get the expected outputs.
|
Yes it is after source. |
@NigoroJr I replicated your setup 100% and moved my old .zshrc out of the way. Still
$ZPLUG_HOME is set after the first zplug plugin line (in this case "repos/foo/bar". Not after source ~/.zplug/init.zsh though. I don't know if the FreeBSD default awk is compatible. But GNU awk is a different package (gawk) and it is also registered under a different binary-name "gawk" might break other things if I link it. Could this be a problem ? Anyone of you tested on FreeBSD ? |
I can reproduce the same error with your example on a Debian VM (debian-8.5.0-amd64-netinst.iso) with gawk install.
|
@dezza Sorry my bad, I was starting a new zsh session from the current session, where |
I took a closer look at the code and it turns out it is the right behavior for |
|
/base/sources/local.zsh#L15 __zplug::local::check() /base/sources/local.zsh#L42 __zplug::local::load_plugin() Needs to read __zplug::local::check() {
#[...]
expanded_paths=( $(zsh -c "$_ZPLUG_CONFIG_SUBSHELL; echo ${ZPLUG_HOME}/${zspec[dir]}" 2>/dev/null) ) __zplug::local::load_plugin() {
#[...]
expanded_paths=( $(zsh -c "$_ZPLUG_CONFIG_SUBSHELL; echo ${ZPLUG_HOME}/${zspec[dir]}" 2>/dev/null) ) This is where I am unsure if echo is the right print and if we need a better escaping / quoting. Or if $ZPLUG_HOME insertion right there is hacker-ish if there's logic to do that in another file (which I haven't found, but searched for) And loading now works fine :) |
Pull request: #210 |
I'm seeing something similar. Things like enhanced aren't getting sourced any more. |
Thanks all, however, after due deliberation I will abolish it since this specification is difficult to understand and troublesome. |
Problem Summary
A relative path is resolved with respect to the $ZPLUG_HOME
zplug "repos/robbyrussell/oh-my-zsh/custom/plugins/my-plugin", from:local
System Information
uname -a
zsh version
zplug version/commit
Minimal zshrc
Steps to Reproduce
stdout on launch new shell:
Description
I tried to echo
$ZPLUG_HOME
since it says it is relative to it. It is empty.I tried setting it manually. Didn't work.
I tried searching in the source here on github. It seems it only runs this when it gets a zplug.
$ZPLUG_HOME
is defined when it has loaded completely (e.g. after loading, not in zshrc)Specifying the path manually and not relative does work however
zplug "${HOME}/.zplug/repos/dezza/vi-mode", from:local
Just trying to sort this out :)
The text was updated successfully, but these errors were encountered: