Closed griano closed 1 year ago
Thank you for considering the suggestions, @griano. The change LGTM 🚀
Addressed the requested changes.
The test above were reported incorrectly. In these tests I use the raw
URL to download the actual file.
Test with #autoload
$ bin/rougify guess <(curl -sq https://raw.githubusercontent.com/zsh-users/zsh/master/Completion/Base/Utility/_arguments)
{ tag: "shell", title: "shell", desc: "Various shell languages, including sh and bash" }
Test with `#compdef``
$ bin/rougify guess <(curl -qs https://raw.githubusercontent.com/zsh-users/zsh/master/Completion/Zsh/Command/_alias)
{ tag: "shell", title: "shell", desc: "Various shell languages, including sh and bash" }
```bash
Chenges
In ZSH completions files start with
#compdef
and#autoload
, like these filesI also added detection for some typical ZSH env files.
Testing
rake
passes all testsExample with
#autoload
Example with
#compdef