gnu: just: Enable zsh completion.

* gnu/packages/rust-apps.scm (just)[arguments]: Adjust custom
'install-extras phase to also generate and install zsh shell completions.

Change-Id: Ia906b320b58c3a45e39f20c1ed4c3479f660c098
This commit is contained in:
Efraim Flashner 2024-09-23 15:47:36 +03:00
parent e1c787879a
commit e53474d829
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -1345,11 +1345,10 @@ (define-public just
(with-output-to-file
(string-append bash-completions-dir "/just")
(lambda _ (invoke just "--completions" "bash")))
;; This seems to be broken currently
;(mkdir-p zsh-completions-dir)
;(with-output-to-file
; (string-append zsh-completions-dir "/_just")
; (lambda _ (invoke just "--completions" "zsh")))
(mkdir-p zsh-completions-dir)
(with-output-to-file
(string-append zsh-completions-dir "/_just")
(lambda _ (invoke just "--completions" "zsh")))
(mkdir-p fish-completions-dir)
(with-output-to-file
(string-append fish-completions-dir "/just.fish")