My machine is a M1 Mac mini running Big Sur.
I am trying to get git completion to work in the default terminal which uses a zsh shell.
This is what I am trying and expecting. Screenshot below.
I am able to get completion to work, but not exactly as described here.
Basically, if I type git che
Tab that directly converts into git checkout
instead of giving/listing the options of all the git commands starting with "che" (as shown in the screenshot above.)
Any further presses of Tab simply result in cycling through various branches, but the checkout
doesn't change at all.
I have tried multiple ways like
- using zsh completion settings
- doing git completion settings
- and a few others I could find.
But none seem to work..
What am I doing wrong?
(by the way, I am ok even if the helpful suggestions (in above screenshot) are not displayed. But the completion should allow me to see a list of all possible ambiguous options and to cycle through them.)