Skip to content

Commit 9accb6b

Browse files
authored
Merge pull request #983 from SuperSandro2000/patch-1
Fix lazy loading bash_completion from XDG_DATA_DIRS
2 parents 8166542 + 66961ad commit 9accb6b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Makefile

+3-3
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ install: check
6969
cp -f man/git-*.1 $(DESTDIR)$(MANPREFIX); \
7070
echo "cp -f man/git-*.1 $(DESTDIR)$(MANPREFIX)"; \
7171
fi
72-
@mkdir -p $(DESTDIR)$(SYSCONFDIR)/bash_completion.d
73-
cp -f etc/bash_completion.sh $(DESTDIR)$(SYSCONFDIR)/bash_completion.d/git-extras
72+
@mkdir -p $(DESTDIR)$(SYSCONFDIR)/bash-completion/completions
73+
cp -f etc/bash_completion.sh $(DESTDIR)$(SYSCONFDIR)/bash-completion/completions/git-extras
7474
@echo ""
7575
@echo "If you are a zsh user, you may want to 'source $(CODE_DIR)etc/git-extras-completion.zsh'" \
7676
"and put this line into ~/.zshrc to enable zsh completion"
@@ -119,7 +119,7 @@ uninstall:
119119
echo "... uninstalling $(DESTDIR)$(MANPREFIX)/$(notdir $(MAN))"; \
120120
rm -f $(DESTDIR)$(MANPREFIX)/$(notdir $(MAN)); \
121121
)
122-
rm -f $(DESTDIR)$(SYSCONFDIR)/bash_completion.d/git-extras
122+
rm -f $(DESTDIR)$(SYSCONFDIR)/bash-completion/completions/git-extras
123123

124124
clean: docclean
125125

0 commit comments

Comments
 (0)