shtab icon indicating copy to clipboard operation
shtab copied to clipboard

[bug] pathcomplete.py cannot complete file for zsh

Open Freed-Wu opened this issue 2 years ago • 0 comments

❯ aria2c -o pathcomplete https://raw.githubusercontent.com/iterative/shtab/master/examples/pathcomplete.py
❯ chmod +x pathcomplete
❯ ./pathcomplete -s zsh > ~/.local/share/zinit/_pathcomplete
❯ compinit
❯ pathcomplete <TAB>
# nothing
❯ pathcomplete -<TAB>
option
--dir
--help               show this help message and exit
-h                   show this help message and exit
--print-completion   print shell completion script
-s                   print shell completion script

This bug exists for zsh not bash.

Freed-Wu avatar Aug 27 '22 16:08 Freed-Wu