public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/fzf] rawhide: Fix Zsh completions (rhbz#1513913)
@ 2026-11-13  4:47 Michael Kuhn
  0 siblings, 0 replies; only message in thread
From: Michael Kuhn @ 2026-11-13  4:47 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/fzf
            Branch : rawhide
            Commit : e9c32e5b993ffd7528a46303a76461733775b914
            Author : Michael Kuhn <suraia@fedoraproject.org>
            Date   : 2026-11-13T04:33:05+00:00
            Stats  : +1/-2 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/fzf/c/e9c32e5b993ffd7528a46303a76461733775b914?branch=rawhide

            Log:
            Fix Zsh completions (rhbz#1513913)

Files installed in `/usr/share/zsh/site-functions` are meant as
completion functions for individual commands. For example, `_mpv`
contains completions for the `mpv` command. fzf's completion script does
not work like this and therefore should not be installed into that
directory. Leave it to users to load it in their `.zshrc` instead.

---
diff --git a/fzf.spec b/fzf.spec
index 32a2ba4..19d1d87 100644
--- a/fzf.spec
+++ b/fzf.spec
@@ -55,7 +55,7 @@ install -Dpm0644 -t %{buildroot}%{_datadir}/nvim/site/plugin plugin/fzf.vim
 # fzf is special, bash completion must be in /etc/bash_completion.d
 # https://bugzilla.redhat.com/show_bug.cgi?id=1789958#c7
 install -Dpm0644 shell/completion.bash %{buildroot}%{_sysconfdir}/bash_completion.d/fzf
-install -Dpm0644 shell/completion.zsh %{buildroot}%{zsh_completions_dir}/_fzf
+install -Dpm0644 -t %{buildroot}%{_datadir}/fzf/shell shell/completion.zsh
 
 # Install shell key bindings (not enabled)
 install -Dpm0644 -t %{buildroot}%{_datadir}/fzf/shell shell/key-bindings.*
@@ -80,7 +80,6 @@ install -Dpm0644 -t %{buildroot}%{_datadir}/fzf/shell shell/key-bindings.*
 %dir %{_datadir}/nvim/site/plugin
 %{_datadir}/nvim/site/plugin/fzf.vim
 %{_sysconfdir}/bash_completion.d/fzf
-%{zsh_completions_dir}/_fzf
 
 
 %changelog

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-13  4:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-13  4:47 [rpms/fzf] rawhide: Fix Zsh completions (rhbz#1513913) Michael Kuhn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox