gnu: docker-cli: Install shell completion.

* gnu/packages/docker.scm (docker-cli)[arguments]: Install shell completion.
This commit is contained in:
Oleg Pykhalov 2019-12-07 12:28:59 +03:00
parent dbd8a978f9
commit 449dc8b749
No known key found for this signature in database
GPG key ID: 167F8EA5001AFA9C

View file

@ -617,7 +617,15 @@ (define-public docker-cli
(replace 'install
(lambda* (#:key outputs #:allow-other-keys)
(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")
(install-file "docker" out-bin)
#t))))))