diff options
author | Michael Rohleder <mike@rohleder.de> | 2020-12-08 02:22:03 +0100 |
---|---|---|
committer | Oleg Pykhalov <go.wigust@gmail.com> | 2020-12-08 08:09:21 +0300 |
commit | dcf8dd2be54168ca08f6c338fe892c573dffd04b (patch) | |
tree | 4d03e2c40f81d8570cb9d0bc99903d18b1202355 | |
parent | b5e52d8225e3e4f3124eb761eb3f2c1cad767166 (diff) | |
download | guix-dcf8dd2be54168ca08f6c338fe892c573dffd04b.tar.gz guix-dcf8dd2be54168ca08f6c338fe892c573dffd04b.tar.xz |
gnu: gita: Install shell completions.
* gnu/packages/version-control.scm (gita)[arguments]: Add phase
install-shell-completions.
Signed-off-by: Oleg Pykhalov <go.wigust@gmail.com>
-rw-r--r-- | gnu/packages/version-control.scm | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm index a3588009c0..8504c8b006 100644 --- a/gnu/packages/version-control.scm +++ b/gnu/packages/version-control.scm @@ -31,6 +31,7 @@ ;;; Copyright © 2020 Jan (janneke) Nieuwenhuizen <janneke@gnu.org> ;;; Copyright © 2020 Vinicius Monego <monego@posteo.net> ;;; Copyright © 2020 Tanguy Le Carrour <tanguy@bioneland.org> +;;; Copyright © 2020 Michael Rohleder <mike@rohleder.de> ;;; ;;; This file is part of GNU Guix. ;;; @@ -2947,7 +2948,18 @@ defects faster.") (add-installed-pythonpath inputs outputs) (invoke (string-append (assoc-ref inputs "python-pytest") "/bin/pytest") - "-vv" "tests")))))) + "-vv" "tests"))) + (add-after 'install 'install-shell-completions + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (bash-completion (string-append out "/etc/bash_completion.d")) + (zsh-completion (string-append out "/etc/zsh/site-functions"))) + (mkdir-p bash-completion) + (copy-file ".gita-completion.bash" + (string-append bash-completion "/gita")) + (mkdir-p zsh-completion) + (copy-file ".gita-completion.zsh" + (string-append zsh-completion "/_gita")))))))) (home-page "https://github.com/nosarthur/gita") (synopsis "Command-line tool to manage multiple Git repos") (description "This package provides a command-line tool to manage |