Yet Another TiUP bash autocompletion
-
Install TiUP
-
Download the tiup_completion.bash
$ wget https://raw.githubusercontent.com/yahonda/yatico/main/tiup_completion.bash
$ source ./tiup_completion.bash- Execute
tiupcommand and type key to show candidates
$ source /path/to/tiup_completion.bash
$ tiup <TAB>
bench cdc client completion dm env help list pd-recover status tidb uninstall
br clean cluster ctl dmctl errdoc install mirror playground telemetry tidb-lightning update
$ tiup c<TAB>
cdc clean client cluster completion ctl
$ tiup cluster <TAB>
audit clean destroy display enable import patch reload replay scale-in start template
check deploy disable edit-config help list prune rename restart scale-out stop upgrade
Enjoy!