tldr-c-client icon indicating copy to clipboard operation
tldr-c-client copied to clipboard

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

Open Nick-Z0 opened this issue 3 years ago • 2 comments
trafficstars

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.

Nick-Z0 avatar Oct 28 '22 00:10 Nick-Z0

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

MasterOdin avatar Oct 28 '22 04:10 MasterOdin

Yes, I used the commands of the instructions.

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

Nick-Z0 avatar Oct 28 '22 08:10 Nick-Z0