mafredri / zsh-async

Because your terminal should be able to perform tasks asynchronously without external tools!
MIT License
771 stars 35 forks source link

repair zplug "mafredri/zsh-async", from:"github" Erro without `git config core.symlinks=true` #22

Closed rinetd closed 6 years ago

mafredri commented 6 years ago

Just a note, git config core.symlinks=true is actually default behavior, it has to be explicitly disabled for this to be an issue.

That said, this PR will not provide the correct path when functionargzero is disabled (setopt nofunctionargzero).

We can make it more robust by adding:

0=${(%):-%N}

At the top, to make sure 0 is defined.

rinetd commented 6 years ago

:+1: ye,that's right

0=${(%):-%N}
source ${0:A:h}/async.zsh
mafredri commented 6 years ago

@rinetd did you want to submit the complete PR with 0 included?