gpt4 book ai didi

bash - bash vi shell 模式下的 Tab 自动补全

转载 作者:行者123 更新时间:2023-11-29 08:49:28 25 4
gpt4 key购买 nike

在 Windows 平台上使用 MSYS 时,我“设置 -o vi”以使用 vi shell 模式。文件和目录的 Tab 自动完成功能停止工作。如何在保持 vi shell 模式的同时启用它?

最佳答案

尝试:

bind -q complete

查看是否已设置。

在 Bash 提示符下设置它:

bind '"\C-i":complete'

它应该已经默认设置,但它可能在 /etc/inputrc~/.inputrc 中被覆盖,可能在 $if mode= vi/$endif block 。您可以通过将此行添加到您的 ~/.inputrc 文件来设置后续的 shell 启动:

"\C-i": complete

关于bash - bash vi shell 模式下的 Tab 自动补全,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2252183/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com