删除zsh自动完成建议

巴特·斯纳普

当我打字

cd l

然后点击选项卡,zsh自动完成

cd lightdm/ 

这不是我可用的目录(实际上我已经卸载了lightdm)。

我该如何阻止这种情况的发生?

我已经安装了prezto。

https://github.com/sorin-ionescu/prezto

这可能是所述的AUTO_NAME_DIRSCDABLE_VARS选项的组合zshoptions(1)

% PS1='%# ' zsh -f
% setopt AUTO_NAME_DIRS
% setopt CDABLE_VARS
% autoload -U compinit
% compinit
% cd a        # was mashing tab here to no avail (nor asdf)
cd: no such file or directory: a
% hash -d asdf=/etc
% cd asdf/    # "cd a" now tab completes

(这是通过搜索zshoptions与“ dir”和“ cd”相关的字符串发现的。)

要关闭此功能,请禁用其中一个或多个选项(unsetopt)或删除完成代码正在查找的变量。

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章