我有一个bash命令可以从完整的标签中循环显示我列出的结果。 .cshrc有类似的东西吗? 我想映射ctrl d键来循环我的选项 感谢
答案 0 :(得分:0)
我想你想要complete-word-fwd
命令?
从联系手册:
complete-word-fwd (not bound)
Replaces the current word with the first word in the list of
possible completions. May be repeated to step down through the
list. At the end of the list, beeps and reverts to the incom‐
plete word.
正如您所看到的,默认情况下它并未绑定,但您可以使用以下命令将其绑定到^D
:
bindkey ^D complete-word-fwd
还有complete-word-back
。