eza-community / eza

A modern, maintained replacement for ls
https://eza.rocks
MIT License
8.76k stars 171 forks source link

bug: tab completion does not work in zsh #1039

Closed JorySeverijnse closed 1 day ago

JorySeverijnse commented 2 days ago

error i get from just using eza without arguments: _eza:77: parse error near `\n'

Upon looking in my history file i also see some entries with \n at the end of a command. When just running the gnu ls or exa command autocompletion works normally

image


thorio commented 2 days ago

The issue is with missing backslashes in the zsh completions, apply this patch to /usr/share/zsh/site-functions/_eza to fix it locally. Pacman will overwrite it when the next update releases and all will be well again.

36,37c36,37
<         --no-symlinks"[Do not show symbolic links]"
<         --show-symlinks"[Explictly show symbolic links: for use with '--only-dirs'| '--only-files']"
---
>         --no-symlinks"[Do not show symbolic links]" \
>         --show-symlinks"[Explictly show symbolic links: for use with '--only-dirs'| '--only-files']" \
notpeelz commented 2 days ago

Duplicate of #1038 PR is pending: #1037

JorySeverijnse commented 1 day ago

thanks