Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Getting completion error when using zsh #66

Closed
corroded opened this issue Oct 9, 2015 · 0 comments
Closed

Getting completion error when using zsh #66

corroded opened this issue Oct 9, 2015 · 0 comments

Comments

@corroded
Copy link

corroded commented Oct 9, 2015

So @osaris made a fix here #59 but as @Zhomart pointed out, we need to add -U as an option to autoload.

I can confirm adding -U makes it work. I am using zsh 5.0.8 (x86_64-apple-darwin14.3.0) and without the -U, I get:

bashcompinit:134: parse error near `|'
/Users/eumir/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/lunchy-0.10.3/lib/../extras/lunchy-completion.bash:18: command not found: complete

I don't know much about zsh (I only use it because of yadr) but from what I read here: http://zsh.sourceforge.net/Doc/Release/Functions.html#Autoloading-Functions it is needed because:

The usual alias expansion during reading will be suppressed if the autoload builtin 
or its equivalent is given the option -U. This is recommended for the use of
functions supplied with the zsh distribution. Note that for functions 
precompiled with the zcompile builtin command the flag -U must 
be provided when the .zwc file is created, as the corresponding 
information is compiled into the latter.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant