bindkey with zsh on Mac

前端 未结 1 1759
夕颜
夕颜 2021-02-05 11:27

I\'ve been trying to bind keys in zzh on a Mac but am having some trouble. I know I should be Googling this but couldn\'t find what I need...

I\'ve been trying to bind c

相关标签:
1条回答
  • 2021-02-05 12:10

    Open a shell and try pressing Ctrl-v and then the key you want to bind (eg. Home) This is the key sequence you should use with bindkey.

    My bindings for Home/End (start/end of line) on Snow Leopard:

    bindkey '^[[H' beginning-of-line
    bindkey '^[[F' end-of-line
    

    Still trying to bind cmd-left though ...

    0 讨论(0)
提交回复
热议问题