FS#62265 - [fzf] Incorrect location for shell completion files

Attached to Project: Community Packages
Opened by Simon Legner (simon04) - Sunday, 07 April 2019, 08:36 GMT
Last edited by Morten Linderud (Foxboron) - Sunday, 24 November 2019, 11:15 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Thore Bödecker (foxxx0)
Morten Linderud (Foxboron)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

The shell completion files are incorrectly installed to
- /usr/share/fzf/completion.bash
- /usr/share/fzf/completion.zsh
where they should be installed to
- /usr/share/bash-completion/completions/fzf
- /usr/share/zsh/vendor-completions/_fzf

fzf 0.17.5-1
This task depends upon

Closed by  Morten Linderud (Foxboron)
Sunday, 24 November 2019, 11:15 GMT
Reason for closing:  Fixed
Additional comments about closing:  Next release
Comment by Morten Linderud (Foxboron) - Tuesday, 03 September 2019, 20:22 GMT
`/usr/share/fzf/completion.zsh` are not completion files. They are scripts meant to be sourced to provide the completion.
Comment by Eli Schwartz (eschwartz) - Wednesday, 04 September 2019, 17:07 GMT
At least the bash completions could be installed to the bash-completion/completions/ directory, since a bash completion is in fact "a script that is meant to be sourced", unlike the zsh ones which need to work with the #compdef" system and which I therefore assume need nontrivial modification. For example, this provides completions for `fzf --<TAB>`.

Loading...