Does bash partial/substring file completion similar to what zsh does?
That is, instead of requiring the user开发者_运维百科 to enter a prefix of the filename, then tab; the user can also enter a substring of the filename, then tab.
Say a directory contains a file abcdef
, then not only would ab<tab>
complete to this filename, but also bc<tab>
and cd<tab>
and so on.
If a directory contains the file abcdef
, then you can enter *bc*
and then hit the TAB
key, and it will complete. Of course, zsh can do it without the *
, so it's not the same thing.
精彩评论