Looking for ALT+LeftArrowKey solution in zsh

后端 未结 10 943
孤街浪徒
孤街浪徒 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:45

    On Mavericks (10.9.4) the code is 1;5... so for binding alt with arrows I have my .zshrc using this:

    bindkey "^[[1;5C" forward-word
    bindkey "^[[1;5D" backward-word
    

    You can use CTRL+V and then the command you want to use

    in Yosemite use Rob's solution

提交回复
热议问题