mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-11 13:49:23 -05:00
gnu: docker-cli: Install shell completion.
* gnu/packages/docker.scm (docker-cli)[arguments]: Install shell completion.
This commit is contained in:
parent
dbd8a978f9
commit
449dc8b749
1 changed files with 9 additions and 1 deletions
|
@ -617,7 +617,15 @@ (define-public docker-cli
|
||||||
(replace 'install
|
(replace 'install
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
(let* ((out (assoc-ref outputs "out"))
|
(let* ((out (assoc-ref outputs "out"))
|
||||||
(out-bin (string-append out "/bin")))
|
(out-bin (string-append out "/bin"))
|
||||||
|
(etc (string-append out "/etc")))
|
||||||
|
(with-directory-excursion "src/github.com/docker/cli/contrib/completion"
|
||||||
|
(install-file "bash/docker"
|
||||||
|
(string-append etc "/bash_completion.d"))
|
||||||
|
(install-file "fish/docker.fish"
|
||||||
|
(string-append etc "/fish/completions"))
|
||||||
|
(install-file "zsh/_docker"
|
||||||
|
(string-append etc "/zsh/site-functions")))
|
||||||
(chdir "build")
|
(chdir "build")
|
||||||
(install-file "docker" out-bin)
|
(install-file "docker" out-bin)
|
||||||
#t))))))
|
#t))))))
|
||||||
|
|
Loading…
Reference in a new issue