I want to learn how to write bash completion scripts. Which tutorial would you recommend?
2 Answers
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/
-
1Link now redirects to the Wayback machine but is otherwise still in tact. Should it break in the future however, here is a direct link: web.archive.org/web/20200726061552/https://… Dec 6, 2020 at 17:36
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
-
3
-
It's appears dead since around may. The archive is only moderately useful, as it redirects to the corresponding github repo. web.archive.org/web/20180507171315/http://… Dec 9, 2018 at 22:02
-
tab
key.