summaryrefslogtreecommitdiff
path: root/doc/git-annex.mdwn
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2015-07-10 13:49:37 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2015-07-10 13:49:37 -0400
commit94642d1b1907a379181e25e298910b9c09fd5adf (patch)
treeb70c059ae6268e6816f7b5823f660649575d16dd /doc/git-annex.mdwn
parent19a3a331c35238a10ec2c537cf64d0b4c1fb290c (diff)
doc updates
Diffstat (limited to 'doc/git-annex.mdwn')
-rw-r--r--doc/git-annex.mdwn12
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/git-annex.mdwn b/doc/git-annex.mdwn
index 73894c0d8..e3790bdf9 100644
--- a/doc/git-annex.mdwn
+++ b/doc/git-annex.mdwn
@@ -763,6 +763,18 @@ may not be explicitly listed on their individual man pages.
Overrides git configuration settings. May be specified multiple times.
+# COMMAND-LINE TAB COMPLETION
+
+To enable bash completion, paste this into your shell prompt:
+
+ source <(git-annex --bash-completion-script git-annex)
+
+The output of "git-annex --bash-completion-script git-annex" can also
+be written to a bash completion file so bach loads it automatically.
+
+This bash completion is generated by the option parser, so it covers all
+commands, all options, and will never go out of date!
+
# CONFIGURATION VIA .git/config
Like other git commands, git-annex is configured via `.git/config`.