diff options
author | Oleg Pykhalov <go.wigust@gmail.com> | 2019-12-07 12:28:59 +0300 |
---|---|---|
committer | Oleg Pykhalov <go.wigust@gmail.com> | 2019-12-08 10:39:09 +0300 |
commit | 449dc8b749836536668d528e4f03c911f88d2855 (patch) | |
tree | 5ef0b1725643d866adf15e4e26272c4b21ef104a /gnu/packages/docker.scm | |
parent | dbd8a978f9c4ade785ef20b9a8051da6f6e7faf8 (diff) | |
download | guix-449dc8b749836536668d528e4f03c911f88d2855.tar guix-449dc8b749836536668d528e4f03c911f88d2855.tar.gz |
gnu: docker-cli: Install shell completion.
* gnu/packages/docker.scm (docker-cli)[arguments]: Install shell completion.
Diffstat (limited to 'gnu/packages/docker.scm')
-rw-r--r-- | gnu/packages/docker.scm | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gnu/packages/docker.scm b/gnu/packages/docker.scm index 70d2062448..948cc30cf6 100644 --- a/gnu/packages/docker.scm +++ b/gnu/packages/docker.scm @@ -617,7 +617,15 @@ provisioning etc.") (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)))))) |