]> git.tuebingen.mpg.de Git - paraslash.git/commit
Revamp bash_completion.
authorAndre Noll <maan@tuebingen.mpg.de>
Sat, 19 Apr 2025 11:39:26 +0000 (13:39 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Sun, 18 May 2025 17:19:02 +0000 (19:19 +0200)
commitea69a51bdb003dc948d8ce3a054fd418a42cfc44
tree84273c8a36bfa619220837c129bbe32ed45f6f30
parent69d4838d0ae1eedb59166146dd3f1ead902dd6fc
Revamp bash_completion.

This rewrite of the bash_completion script improves completion for the
para_client and para_audioc commands significantly.

One flaw which is fixed by this patch is related to the fact that by default
readline creates COMP_WORDS by splitting at characters that separate a shell
command, including "=", but for paraslash commands we only want to split at
spaces. So we modify the completer to return the special code 124 to instruct
readline to try split again with space as the only delimiter.
bash_completion