~ruther/guix-local

6da03fcc459f4475553f394354ef37c628f39f97 — Liliana Marie Prikler 2 years ago bd20ad3
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
1 files changed, 9 insertions(+), 6 deletions(-)

M gnu/packages/version-control.scm
M gnu/packages/version-control.scm => gnu/packages/version-control.scm +9 -6
@@ 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"))