Fix key settings (Home/End/Insert/Delete) in .zshrc when running Zsh in Terminator Terminal Emulator

后端 未结 4 521
独厮守ぢ
独厮守ぢ 2020-12-23 02:31

I\'m running Ubuntu 11.04. I installed the Terminator Terminal Emulator 0.95, and Zsh, version 4.3.15.
I have (commonly known) problems with my keys inside the Zsh. At

4条回答
  •  清酒与你
    2020-12-23 02:58

    For me on WSL2 (Windows 10) this was it

    bindkey "^[OH" beginning-of-line
    bindkey "^[OF" end-of-line
    

    The cat trick did not work for me as it printed ^[[H as in the accepted answer but I was able to find out the ^[OH sequence by typing Ctrl+v Home in the new Window Terminal running zsh.

提交回复
热议问题