diff options
author | Efraim Flashner <efraim@flashner.co.il> | 2022-07-18 13:22:15 +0300 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2022-07-18 13:22:15 +0300 |
commit | 4ca19e88de3dd634b08a5c08dbb3d6e9957dbe83 (patch) | |
tree | 7921edf9886bfe17c4c899ac2bbbe45de69c668d /gnu | |
parent | cde4f3fdcb1d4bc96f0dbcfad6f3474a02ff4c7a (diff) | |
download | guix-4ca19e88de3dd634b08a5c08dbb3d6e9957dbe83.tar.gz guix-4ca19e88de3dd634b08a5c08dbb3d6e9957dbe83.zip |
gnu: tig: Install shell completions.
* gnu/packages/version-control.scm (tig)[arguments]: Add custom phase to
install shell completions.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/version-control.scm | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm index 62c2e452d1..2848bcb146 100644 --- a/gnu/packages/version-control.scm +++ b/gnu/packages/version-control.scm @@ -2458,7 +2458,17 @@ from Subversion to any supported Distributed Version Control System (DVCS).") (modify-phases %standard-phases (add-after 'install 'install-doc (lambda _ - (invoke "make" "install-doc")))) + (invoke "make" "install-doc"))) + (add-after 'install 'install-completions + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (share (string-append out "/share"))) + (mkdir-p (string-append share "/bash-completion/completions")) + (mkdir-p (string-append share "/zsh/site-functions")) + (copy-file "contrib/tig-completion.bash" + (string-append share "/bash-completion/completions/tig")) + (copy-file "contrib/tig-completion.zsh" + (string-append share "/zsh/site-functions/_tig")))))) #:test-target "test" #:tests? #f)) ; tests require access to /dev/tty (home-page "https://jonas.github.io/tig/") |