-
-
Notifications
You must be signed in to change notification settings - Fork 229
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
Unable to install fd #454
Comments
The problem appears to come from line 216 in releases.zsh. binaries=()
binaries+=(**/$cmd(N-.)) # new. Will find files which are named exactly $cmd
binaries+=(**/*$cmd*(N-.))
binaries+=(**/*(N-*))
binaries+=( $(file **/*(N-.) | awk -F: '$2 ~ /executable/{print $1}') ) Of course, if we weren't dual-using |
Hell - we could even replace the globbing with a call to 'find' if we're okay with GNU extensions and recent-ish versions of find:
|
Maybe fixed. So please clone latest zplug and check it works correctly |
zplug --version
: 2.4.2zsh --version
: zsh 5.1.1 (x86_64-ubuntu-linux-gnu)uname -a
: Linux XXXXXXXX 4.10.0-42-generic Manual sourcing of .zshrc reports errors #46~16.04.1-Ubuntu SMP Mon Dec 4 15:57:59 UTC 2017 x86_64 x86_64 x86_64 GNU/LinuxMinimal zshrc
Step to reproduce
head ~/.zplug/bin/fd
, and note that the file is a script, not the binary you expected.Issue
The default candidate selection for commands seems inadequate for
fd
.fd
's downloaded tar.gz contains the following:fd
is the binary I'd like.autocomplete/_fd
looks to be a wrapper script (no doubt useful, but not the tool itself). Specifyinguse:fd
, as above, is gettingautocomplete/_fd
for some reason.I've tried multiple
use
parameters, but nothing has yet allowed me to access the correct binary. The documentation doesn't mention this explicitly (I assume because this behavior is supposed to be default?)I joined the slack channel, but it was a ghost town. I figured I would ask to see if this was a bug here. If you need any more information, please let me know.
The text was updated successfully, but these errors were encountered: