Binding ctrl+a and ctrl+e
Hi all --
I've a Solaris 10 machine running bash 3.2.52 which has Code:
set -o vi I've a RHEL 6.6 machine running bash 4.1.2 which also uses the vi keybindings, but ctrl+a and ctrl+e aren't working. I'm not using screen, which seems to most often be the culprit in other forum posts. I understand that it's weird for them to work with the vi keybindings anyway, so chances are someone fixed the other machine somewhere (or it's a Solaris thing). I could use set -o emacs instead to get those specific bindings to work, but I'm more interested in how to bind them manually instead of changing the whole keymap? Thanks! |
Replying to myself - solved.
The answer is, create a new file ~/.inputrc with contents: Code:
# LHH inputrc Code:
bind -f ~/.inputrc Some useful links I used while figuring this out: http://superuser.com/questions/81296...e-vi-shortcuts https://www.gnu.org/software/bash/ma...Init-File.html https://bbs.archlinux.org/viewtopic....428760#p428760 |
All times are GMT -5. The time now is 03:06 PM. |