0
我有一個bash命令,它可以循環顯示從列表結果中完成的選項卡。 有沒有類似.cshrc的東西? 我想映射按Ctrl鍵來循環選項 謝謝我想在選項卡完整結果中循環
我有一個bash命令,它可以循環顯示從列表結果中完成的選項卡。 有沒有類似.cshrc的東西? 我想映射按Ctrl鍵來循環選項 謝謝我想在選項卡完整結果中循環
我想你想要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
。
這是完美的!謝謝。你指的是什麼手冊頁? – user1869582
@ user1869582'man csh'或'man tcsh'(這些天大多數'csh'通常是'tcsh')。 – Carpetsmoker