开发者

Bash Substring File Completion

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜