In bash and zsh, you can use convenient readline combinations, such as these , to move between words, delete from the middle of a line, etc.
However, only a couple of them (Ctrl-A and Ctrl-E and several others) work in psql, IRB and the Rails console, and possibly others.
Why is it and how hard was it to fix it? Of course, it would be convenient to be able to quickly move between words in a long SQL query.
source share