Skip to content

v1.0.0-beta

Latest
Compare
Choose a tag to compare
@ryuichiueda ryuichiueda released this 26 Feb 23:54
· 3 commits to beta since this release

Update for Git completion scripts in bash-completion

Our shell starts understanding the completion scripts in bash-completion. Here is an example:

image

image

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 before esac.
  • ${!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