Closed bartekpacia closed 1 month ago
This PR updates the default Zsh autcompletion script so it can be sourced. This makes debugging/testing autocompletion easier, because there's no need to copy this file to zsh/site-functions dir and rename it.
source
zsh/site-functions
I first described this problem in https://github.com/urfave/cli/issues/1874
I also formatted this file with shfmt.
shfmt
Related to #1874.
I'm not sure if the same problem occurs in Bash. I'll check when I have more free time and possibly fix it in another PR.
None.
Tested locally.
I use this version of the zsh_autocomplete script in my own CLI programs, and it works as intended. Example: bartekpacia/emu.
zsh_autocomplete
bartekpacia/emu
Those are on my list :)
@bartekpacia Please merge whenever you're ready 😁 And we've got auto-merge set up here, which you're welcome to turn on for any PRs.
What type of PR is this?
What this PR does / why we need it:
This PR updates the default Zsh autcompletion script so it can be
source
d. This makes debugging/testing autocompletion easier, because there's no need to copy this file tozsh/site-functions
dir and rename it.I first described this problem in https://github.com/urfave/cli/issues/1874
I also formatted this file with
shfmt
.Which issue(s) this PR fixes:
Related to #1874.
I'm not sure if the same problem occurs in Bash. I'll check when I have more free time and possibly fix it in another PR.
Special notes for your reviewer:
None.
Testing
Tested locally.
I use this version of the
zsh_autocomplete
script in my own CLI programs, and it works as intended. Example:bartekpacia/emu
.Release Notes