aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2015-07-16 13:32:23 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2015-07-16 13:32:23 -0400
commit94c8afbfec3c47132b106eb98bbf59defeef449f (patch)
treec0f4169419256e07992db001633c412f85ffc46d /Makefile
parentfe70e063d020dcc9d74edae7b7e3b3db2b089c66 (diff)
got bash completion working for "git annex" not just "git-annex"
This needs a patch to git to cause the git-annex completion to be auto-loaded when completing "git annex <tab>". Otherwise, it will only load when "git-annex" is tab completed. Once loaded, it works for both uses. I've submitted the git patch to the git mailing list.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 2f7d3b244..ddc56e3f8 100644
--- a/Makefile
+++ b/Makefile
@@ -49,7 +49,7 @@ install: build install-docs Build/InstallDesktopFile
ln -sf git-annex $(DESTDIR)$(PREFIX)/bin/git-annex-shell
./Build/InstallDesktopFile $(PREFIX)/bin/git-annex || true
install -d $(DESTDIR)$(PREFIX)/share/bash-completion/completions
- ./git-annex --bash-completion-script git-annex > $(DESTDIR)$(PREFIX)/share/bash-completion/completions/git-annex
+ install -m 0644 bash-completion.bash $(DESTDIR)$(PREFIX)/share/bash-completion/completions/git-annex
test: git-annex
./git-annex test