Looking for ALT+LeftArrowKey solution in zsh

后端 未结 10 762
孤街浪徒
孤街浪徒 2021-01-29 18:13

I just recently switched from bash to zsh, however I miss my Alt+LeftArrowKey and Alt+RightArrowKey to go back and forth a word at a

10条回答
  •  隐瞒了意图╮
    2021-01-29 18:30

    Though not strictly answering your question, the default binding for forward-word and backward-word are alt-f resp. alt-b.

    This works everywhere, does not require you to leave the home row, and has a nice mnemonic property (f=forward, b=back), while also being consistent with ctrl-f and ctrl-b being forward-character and backward-character.

    Rip out your arrow keys!

提交回复
热议问题