cshell tab补全,不区分大小写
对于 C Shell,有没有一种方法可以使命令、文件等的制表符补全不区分大小写?
我看到了 complete=enhance
变量,但这仅适用于 tcsh,不适用于 csh。
For C Shell is there a way to make tab completion for commands, files etc. case insensitive?
I saw the complete=enhance
variable, but that is only for tcsh, not csh.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这是针对超级新手的更详细的答案:
Ratheesh Pai 的答案是正确的,但如果您希望设置保留,则需要将命令写入
.cshrc
文件。每当您打开 shell 时都会执行此文件(假设.cshrc
文件位于您的主目录中。将.cshrc
文件视为设置文件 - 您可以添加任何内容您想要的个人偏好...以下是如何设置选项卡完成:
将以下两行插入
.cshrc
然后退出 VIM
最后,重新打开 shell(或获取
源代码)。 >.cshrc
文件):然后试一试,您应该能够完成不区分大小写的制表符。
Here's a more verbose answer for the uber newbs:
Ratheesh Pai's answer is correct, but if you want the settings to persist, you want to write the commands to your
.cshrc
file. This file is executed any time you open a shell (assuming the.cshrc
file is in your home directory. Think of the.cshrc
file as a settings file - you add whatever personal preferences you want into it...Here's how to setup tab completion:
Insert in the two lines below into
.cshrc
Then quit VIM.
Last, either re-open your shell (or source the
.cshrc
file):Then give it a shot, you should be able to case-insensitive tab complete.