This works
Normally, zsh
's tab completion works well.
$ touch foo-1-bar foo-2-bar
$ touch f<Tab>
$ touch foo--bar
^ cursor here
Pressing Tab again brings up a menu from which I can select files.
$ touch foo--bar
foo-1-bar foo-2-bar
This doesn't
However, this doesn't seem to work with strings where the beginning and end match. For example:
touch foo-bar foo-foo-bar
touch f<Tab>
touch foo-bar
^ cursor here. <tab> again.
touch foo-bar
^ cursor here.
No menu is brought up, and there is no opportunity to select foo-foo-bar
. Is this expected behaviour or a bug? Is there a setting to make a menu appear in the latter scenario?
I'm using oh-my-zsh
. I attempted removing all the completion-related lines from ~/.zshrc
, but this made no difference.
oh-my-zsh
, in.zshrc
putautoload -U compinit && compinit; zstyle ':completion:*' menu select
.oh-my-zsh
, the second line is not necessary. Is there a way to make completion work without removingoh-my-zsh
?zsh
, and many tutorials suggestoh-my-zsh
. FWIW I like the prompt that I've picked. I presume that may be workable withoutoh-my-zsh
though.