首页 > 解决方案 > 在目录符号链接的 tcsh 补全中添加尾部斜杠

问题描述

假设我有一个文件夹~/Documents

现在,当我键入/Doctab按键时,我的 tcsh 将完成该行/Documents

我想达到的,是得到/Documents/

我发现互联网上的大多数讨论都是关于 bash 的。但在这里我使用tcsh。我知道这是可行的,因为我之前的设置在tcsh中是这样工作的。

标签: autocompletetcsh

解决方案


这就是 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.

推荐阅读