bash completion for i3 commands
i3-msg <TAB>
source /path/to/i3_completion.sh
autoload bashcompinit && bashcompinit
source /path/to/i3_completion.sh
Optionally, you can also generate the command list and completion script yourself:
./gen.sh
Runs your i3 binary in Xephyr. It then sends bogus commands to this i3 instance in order to learn a list of available commands. From there, the bash completion script is generated.