My Emacs keybindings in
zsh are not working (CtrlA, CtrlE). I use
zsh on OS X.
They might be bound to some other thing. I'm currently using oh-my-zsh.
.zshrc is over here.
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.Sign up to join this community
Generally speaking, you can find the code of a key by typing CtrlV and the key. You can then use this key with
bindkey to map it to a
zsh keyboard functionality (e.g.
In your specific case that would be CtrlV CtrlA and CtrlV CtrlE.
Then you can put the code in your
.inputrc, the system
/etc/inputrc, or your
.zshrc like this:
bindkey '^A' beginning-of-line bindkey '^E' end-of-line
This works for other keys too. For instance, I had some trouble with Home and End.
You should be able to use this trick in any terminal session : tty,