iterative / shtab

↔️ Automagic shell tab completion for Python CLI applications
https://docs.iterative.ai/shtab
Other
375 stars 34 forks source link

[bug] pathcomplete.py cannot complete file for zsh #91

Closed Freed-Wu closed 1 year ago

Freed-Wu commented 2 years ago
❯ 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.