diff options
author | Liliana Marie Prikler <liliana.prikler@gmail.com> | 2023-09-23 21:43:07 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2024-08-31 10:42:06 +0200 |
commit | 6da03fcc459f4475553f394354ef37c628f39f97 (patch) | |
tree | e351ab8cf1d79b2666bb2cedd7c4510a6b2b6ede | |
parent | bd20ad3eb2c2742c94e71ec4ba50681c7587a195 (diff) | |
download | guix-6da03fcc459f4475553f394354ef37c628f39f97.tar.gz guix-6da03fcc459f4475553f394354ef37c628f39f97.zip |
gnu: git: Install zsh completions and git-prompt.
* gnu/packages/version-control.scm (git)[#:phases]<install-shell-completion>:
Also install git-prompt and zsh _git site function.
Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Change-Id: I76c45e117715a13db96ef0dda4ad6ea9af3a1882
-rw-r--r-- | gnu/packages/version-control.scm | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm index d64eb19d8a..3987ed0faa 100644 --- a/gnu/packages/version-control.scm +++ b/gnu/packages/version-control.scm @@ -425,13 +425,16 @@ Python 3.3 and later, rather than on Python 2.") "t/t9141-git-svn-multiple-branches.sh"))))) (add-after 'install 'install-shell-completion (lambda _ - (let ((completions (string-append #$output - "/etc/bash_completion.d"))) - ;; TODO: Install the tcsh and zsh completions in the right - ;; place. - (mkdir-p completions) + (let ((bash (string-append #$output "/etc/bash_completion.d")) + (zsh (string-append #$output "/share/zsh/site-functions"))) + ;; TODO: Install the tcsh completions in the right place. + (for-each mkdir-p (list bash zsh)) (copy-file "contrib/completion/git-completion.bash" - (string-append completions "/git"))))) + (string-append bash "/git")) + (copy-file "contrib/completion/git-prompt.sh" + (string-append #$output "/bin/git-prompt")) + (copy-file "contrib/completion/git-completion.zsh" + (string-append zsh "/_git"))))) (add-after 'install 'remove-unusable-perl-commands (lambda _ (let ((bin (string-append #$output "/bin")) |