I want to learn how to write bash completion scripts. Which tutorial would you recommend?
There aren't that many bash completion tutorials around, but this one is pretty good:
- Part 1 is for general knowledge
- Part 2 covers creating scripts in /etc/bash_completion.d/
I would start by looking at the library of bash completions already put together by the folks here:
They also have a mailing list: