(See my previous question for additional context).
I'm migrating to
bash, and using
oh-my-zsh. When my
zsh history looks something like the following:
git status git add -A git commit
I want to be able to re-run
git add -A. To do that, I could use
!?git add, which should:
!?str[?] Refer to the most recent command containing str. The trailing ‘?’ is necessary if this reference is to be followed by a modifier or followed by any text that is not to be considered part of str.
The link for zsh event designators is here.
Unfortunately, I can't do this - as I'm typing
!?git add, as I hit the
' ', it auto-completes the command to the most recent command matching
git (ie, it auto-completes with
git commit). I can't use the event designator properly because of this auto-completion as I hit the space.
I assume this is an
oh-my-zsh feature. I have no idea where to look, though -
greping for 'complet' in the
oh-my-zsh source doesn't get me anywhere.
My question: how do I turn off this feature? Or, if that's not something that's known, where should I be looking - if I was going to implement this auto-complete when whitespace is entered, where would be a logical place to do so in the