我正在尝试在emacs模式下为命令行启用自动完成功能.当我尝试:
set -o emacs
bind '^I'=complete
bind '^I'=complete-list
Run Code Online (Sandbox Code Playgroud)
并重新启动,我得到"找不到绑定命令"错误.
有没有其他方法可以在emacs模式下使用tab-autocomplete,即选项卡完成第一个区别?如果没有,我如何在ksh中安装绑定?
谢谢
bind 是Bash/readline特定的.
从ksh faq,
Q6. Does ksh support file name completion?
A6. Yes, it does. The default key binding is <ESC><ESC>
however, starting with the 'g' point release, <TAB> also works
for completion. Note, the vi users need to set -o viraw
in order to get <TAB> completion to work.
ksh93g是在1994-04-30发布的,所以如果它对你不起作用我会很惊讶...你的ksh版本是什么?