forked from mirrors/nixpkgs
git: Add git-prompt.sh to /etc/bash_completion.d.
This will make the git-prompt.sh features available to bash users when completions are enabled. It is done in this way in Debian/Ubuntu as well.
This commit is contained in:
parent
c37057240f
commit
d809e775e8
|
@ -66,6 +66,7 @@ stdenv.mkDerivation {
|
|||
ln -s "$out/share/git/contrib/emacs/"*.el $out/share/emacs/site-lisp/
|
||||
mkdir -p $out/etc/bash_completion.d
|
||||
ln -s $out/share/git/contrib/completion/git-completion.bash $out/etc/bash_completion.d/
|
||||
ln -s $out/share/git/contrib/completion/git-prompt.sh $out/etc/bash_completion.d/
|
||||
|
||||
# grep is a runtime dependency, need to patch so that it's found
|
||||
substituteInPlace $out/libexec/git-core/git-sh-setup \
|
||||
|
|
Loading…
Reference in a new issue