me
/
guix
Archived
1
0
Fork 0

gnu: fzf: Fix fish functions location.

Reported by wp1148917-web <drwilly@drwilly.de>.

* gnu/packages/terminals.scm (fzf)[arguments]: Adjust
'install-completions phase to install the fish vendor functions into the
correct location.
master
Efraim Flashner 2021-10-03 14:57:29 +03:00
parent 080ba97652
commit b3fd8dafb0
No known key found for this signature in database
GPG Key ID: 41AAE7DCCA3D8351
1 changed files with 4 additions and 4 deletions

View File

@ -897,16 +897,16 @@ usable with any list--including files, command history, processes and more.")
(lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
(bash-completion (string-append out "/etc/bash_completion.d"))
(fish-completion
(string-append out "/share/fish/vendor_completions.d"))
(fish-functions
(string-append out "/share/fish/vendor_functions.d"))
(zsh-completion (string-append out "/share/zsh/site-functions")))
(with-directory-excursion "src/github.com/junegunn/fzf"
(mkdir-p bash-completion)
(copy-file "shell/completion.bash"
(string-append bash-completion "/fzf"))
(mkdir-p fish-completion)
(mkdir-p fish-functions)
(copy-file "shell/key-bindings.fish"
(string-append fish-completion "/fzf.fish"))
(string-append fish-functions "/fzf_key_bindings.fish"))
(mkdir-p zsh-completion)
(copy-file "shell/completion.zsh"
(string-append zsh-completion "/_fzf"))))))))))