Community Packages

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!
Tasklist

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
Task Type Feature Request
Category Packages
Status Closed
Assigned To Alexander Epaneshnikov (alex19EP)
Architecture All
Severity Low
Priority Normal
Reported Version 6.0.2
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Summary 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
Comment by Latif Sulistyo (latipun) - Wednesday, 16 November 2022, 04:48 GMT
To generate the completion, it needs `python-shtab` package.

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

Loading...