开发者

Bash Substring File Completion

开发者 https://www.devze.com 2023-04-09 01:45 出处:网络
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 subs

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

精彩评论

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

关注公众号