autocomplete - 在目录符号链接的 tcsh 补全中添加尾部斜杠
问题描述
假设我有一个文件夹~/Documents
现在,当我键入/Doc
并tab
按键时,我的 tcsh 将完成该行/Documents
我想达到的,是得到/Documents/
我发现互联网上的大多数讨论都是关于 bash 的。但在这里我使用tcsh。我知道这是可行的,因为我之前的设置在tcsh中是这样工作的。
解决方案
这就是 tcsh 默认的行为方式;但它是由addsuffix
设置控制的;来自tcsh(1)
:
addsuffix (+)
If set, filename completion adds `/' to the end of directories
and a space to the end of normal files when they are matched
exactly. Set by default.
推荐阅读
- javascript - 检查会话是否桥接到另一个会话
- python - 没有名为“gensim.sklearn_api”的模块如何解决
- sas - 为什么在运行逐步回归时在 SAS 中出现堆栈溢出错误
- ubuntu - Ejabberd:安装期间的故障转储
- c# - pinvoke:线程与共享内存缓冲区
- python - 在 seaborn 中创造人工传奇
- amazon-web-services - 在 AWS 负载平衡的侦听器选项卡上找不到密码列
- sql - 用于在 Web 开发中存储数据的文本文件与 SQL 数据库
- android - 如何将 NavigationDrawer 与 TabLayout 和几个 Fragment 链接?
- flutter - Youtube Private Streaming in app 并检查用户是否为付费视频付费。?