mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-18 21:46:35 +01:00
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
This commit is contained in:
parent
bd20ad3eb2
commit
6da03fcc45
1 changed files with 9 additions and 6 deletions
|
@ -425,13 +425,16 @@ (define PATH-variable-definition
|
||||||
"t/t9141-git-svn-multiple-branches.sh")))))
|
"t/t9141-git-svn-multiple-branches.sh")))))
|
||||||
(add-after 'install 'install-shell-completion
|
(add-after 'install 'install-shell-completion
|
||||||
(lambda _
|
(lambda _
|
||||||
(let ((completions (string-append #$output
|
(let ((bash (string-append #$output "/etc/bash_completion.d"))
|
||||||
"/etc/bash_completion.d")))
|
(zsh (string-append #$output "/share/zsh/site-functions")))
|
||||||
;; TODO: Install the tcsh and zsh completions in the right
|
;; TODO: Install the tcsh completions in the right place.
|
||||||
;; place.
|
(for-each mkdir-p (list bash zsh))
|
||||||
(mkdir-p completions)
|
|
||||||
(copy-file "contrib/completion/git-completion.bash"
|
(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
|
(add-after 'install 'remove-unusable-perl-commands
|
||||||
(lambda _
|
(lambda _
|
||||||
(let ((bin (string-append #$output "/bin"))
|
(let ((bin (string-append #$output "/bin"))
|
||||||
|
|
Loading…
Reference in a new issue