From 66961ad4911cd0f1a908530f2b725bacc7d198e1 Mon Sep 17 00:00:00 2001 From: Sandro Date: Fri, 8 Jul 2022 11:49:58 +0200 Subject: [PATCH] Fix lazy loading bash_completion from XDG_DATA_DIRS If a bash_completion file should get lazy loaded and is placed in a none standard directory which is listed in XDG_DATA_DIRS it must be placed under share/bash-completion/completions. This is for example used in home-manager. See https://github.com/scop/bash-completion/blob/730368b35aeb7f9b7eec62ff0e19b1bd8b385961/bash_completion#L2531 --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index db818e8..1374fd0 100644 --- a/Makefile +++ b/Makefile @@ -69,8 +69,8 @@ install: check cp -f man/git-*.1 $(DESTDIR)$(MANPREFIX); \ echo "cp -f man/git-*.1 $(DESTDIR)$(MANPREFIX)"; \ fi - @mkdir -p $(DESTDIR)$(SYSCONFDIR)/bash_completion.d - cp -f etc/bash_completion.sh $(DESTDIR)$(SYSCONFDIR)/bash_completion.d/git-extras + @mkdir -p $(DESTDIR)$(SYSCONFDIR)/bash-completion/completions + cp -f etc/bash_completion.sh $(DESTDIR)$(SYSCONFDIR)/bash-completion/completions/git-extras @echo "" @echo "If you are a zsh user, you may want to 'source $(CODE_DIR)etc/git-extras-completion.zsh'" \ "and put this line into ~/.zshrc to enable zsh completion" @@ -119,7 +119,7 @@ uninstall: echo "... uninstalling $(DESTDIR)$(MANPREFIX)/$(notdir $(MAN))"; \ rm -f $(DESTDIR)$(MANPREFIX)/$(notdir $(MAN)); \ ) - rm -f $(DESTDIR)$(SYSCONFDIR)/bash_completion.d/git-extras + rm -f $(DESTDIR)$(SYSCONFDIR)/bash-completion/completions/git-extras clean: docclean