Bash Completion, Part 2: Programmable Completion
Don’t miss the previous post in this series: Bash Tab Completion
With Bash’s programmable completion functionality, we can create scripts that allow us to tab-complete arguments for specific commands. We can even include logic to handle deeply nested arguments for subcommands.