Update for Git completion scripts in bash-completion
Our shell starts understanding the completion scripts in bash-completion. Here is an example:
How to use
Add the following lines in ~/.sushrc
after the line for installing bash-completion.
_completion_loader git
complete -o bashdefault -o default -o nospace -F __git_wrap__git_main git
Though completion scripts for Git are automatically loaded in Bash, we have to load them in .sushrc
. See .sushrc if you want an example.
Improved parts
As tested with this script, these features are updated.
- End symbols (e.g.
;;
) can be omitted beforeesac
. ${!name[@]}
and${!name[*]}
are available.- The getopts command is enabled to understand concatenated options.
- The process substitution
<(...)
is supproted. (>(..)
is not supported. ) - Some bugs around parameters are fixed.
Full Changelog: v0.11.2...v1.0.0