I want to learn how to write bash completion scripts. Which tutorial would you recommend?
Asked
Active
Viewed 7.7k times
90
2 Answers
60
There aren't that many bash completion tutorials around, but this one is pretty good:
Introduction to Bash Completion
- Part 1 is for general knowledge
- Part 2 covers creating scripts in /etc/bash_completion.d/

Gerald Schneider
- 903

wag
- 35,944
- 12
- 67
- 51
22
I would start by looking at the library of bash completions already put together by the folks here:
http://bash-completion.alioth.debian.org/
They also have a mailing list:
http://lists.alioth.debian.org/mailman/listinfo/bash-completion-devel

Victor
- 133

Andre Stechert
- 371
-
3
-
It's appears dead since around may. The archive is only moderately useful, as it redirects to the corresponding github repo. https://web.archive.org/web/20180507171315/http://bash-completion.alioth.debian.org/ – Aiyion.Prime Dec 09 '18 at 22:02
-
1That Github repo being here: https://github.com/scop/bash-completion – AstroFloyd May 24 '19 at 16:37
tab
key. – intuited Dec 11 '10 at 04:45