1

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.

hibbelig
  • 510
  • 6
  • 15
Nordlöw
  • 11,838
  • 10
  • 52
  • 99

1 Answers1

3

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.

hibbelig
  • 510
  • 6
  • 15