In bash and zsh, you can use handy readline shortcuts like these to navigate between words, delete from the middle of the line, etc.
However, only a couple of these (Ctrl-A and Ctrl-E and a couple of others) work in psql, IRB, and the Rails console and probably others.
Why is this, and how hard would it be to fix it? It sure would be handy to be able to quickly navigate between words in a long SQL query.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.