I'm moving from Tcsh to Bash, and I would like to take the ESC+p feature with me.
If I type , say git cl
, and then press ESC+p, it should complete automatically to the last command that starts with git cl
(e.g. git clone something
), and place the cursor at the end.
I added the following 2 lines to ~/.inputrc
:
"\ep": history-search-backward
"\en": history-search-forward
which gives me exactly what I need except that the cursor is not moved to the end.
Any ideas how to fix that?