tldr-pages / tldr-c-client

C command-line client for tldr pages 📚
MIT License
299 stars 50 forks source link

Autocomplete in zsh throws error: parse error near `\n' #93

Open Nick-Z0 opened 1 year ago

Nick-Z0 commented 1 year ago

Reproduction Rate

Every time when I open the shell.

Steps to Reproduce

Set zsh autocomplete as mentioned in the instructions.

Result

I get an error: /Users/XXX/.tldr.complete:9: parse error near `\n'

Expected Result

No error, working autocomplete.

Additional Information

v1.5.0 - MacOS 12.6.1 - macbook pro 14" - zsh

I searched in complete.zsh for "`\n" but I am not sure what to look for.

MasterOdin commented 1 year ago

I'm unable to reproduce locally. Is .tldr.complete a proper copy of complete.zsh?

Nick-Z0 commented 1 year ago

Yes, I used the commands of the instructions.

mv autocomplete/complete.zsh ~/.tldr.complete