Zsh 颜色部分制表符补全
Is it possible to color the completed part of the partial completion results in Zsh?
Fish does this by default (in Gentoo at least) as shown in the image below:
Full size image: https://i.sstatic.net/KaL1g.png
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
(摘自reddit 线程,添加到此处以帮助人们搜索此内容,就像我一样.)
(Taken from reddit thread, added here to help people searching for this, like I did.)
我认为 [1] 就是你想要的。您需要菜单并按照 @svlasov 评论进行选择。
[1]。 ZSH 在选项卡上突出显示
I think [1] is thing you want. You need menu and select as @svlasov commented.
[1]. ZSH highlight on tab
我很久以前(2002 年)写了一个实验性的 shell 脚本来解释 shell 中的控制字符。看看http://cltfc.sites.uol.com.br/,你就会查看很多关于如何在黑屏上对任何字符进行着色、发出声音和定位的示例。但这是针对 Bash 的,我不知道它们是否兼容。
无论如何,对于 Zsh,请检查此页面 http://spiralofhope.wordpress。 com/2009/04/23/zsh-ansi-prompt/,您将看到一些如何使用颜色自定义提示的示例。当您直接在 shell 上使用时,相同的 ANSI 颜色代码和相同的语法应该可以工作。
I long time ago (2002) i wrote a experimental shell script to explain about control characters in shell. Check this out http://cltfc.sites.uol.com.br/ and you gonna see a lot of examples about how to color, make sounds and positioning of any char on your black screen. But this is for Bash and i do not know if they are compatible.
Anyway, for Zsh, check this page http://spiralofhope.wordpress.com/2009/04/23/zsh-ansi-prompt/ and you gonna see some examples of how to customize your prompt with colors. The same ANSI codes for colors and the same syntax should work when you use directly on the shell.