Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#76187 - [trash-cli] Add completion script
Attached to Project:
Community Packages
Opened by Wu Zhenyu (Freed) - Thursday, 13 October 2022, 06:39 GMT
Last edited by Alexander Epaneshnikov (alex19EP) - Wednesday, 16 November 2022, 12:37 GMT
Opened by Wu Zhenyu (Freed) - Thursday, 13 October 2022, 06:39 GMT
Last edited by Alexander Epaneshnikov (alex19EP) - Wednesday, 16 November 2022, 12:37 GMT
|
DetailsSummary and Info:
trash-cli have its completions now. See https://github.com/zsh-users/zsh-completions/pull/895#issuecomment-1277084254 |
This task depends upon
Closed by Alexander Epaneshnikov (alex19EP)
Wednesday, 16 November 2022, 12:37 GMT
Reason for closing: Fixed
Additional comments about closing: trash-cli-0.22.10.20-3
Wednesday, 16 November 2022, 12:37 GMT
Reason for closing: Fixed
Additional comments about closing: trash-cli-0.22.10.20-3
From the example, could be generate the completion like this without AUR:
cmds=(trash-empty trash-list trash-restore trash-put trash)
for cmd in $cmds; do
$cmd --print-completion bash | sudo tee /usr/share/bash-completion/completions/$cmd
$cmd --print-completion zsh | sudo tee /usr/share/zsh/site-functions/_$cmd
$cmd --print-completion tcsh | sudo tee /etc/profile.d/$cmd.completion.csh
done