CLI Magic: Using command history in the bash shell (Linux.com)
Posted Jul 4, 2006 9:34 UTC (Tue) by
etienne_lorrain@yahoo.fr (guest, #38022)
In reply to:
CLI Magic: Using command history in the bash shell (Linux.com) by sveinrn
Parent article:
CLI Magic: Using command history in the bash shell (Linux.com)
To type the begining of an old CLI command and search backward/forward another command starting with the same chars with PageUp/PageDown, I am using this file for a long time (I think since RedHat 4.2):
$ cat ~/.inputrc
set meta-flag on
set input-meta on
set convert-meta off
set output-meta on
"\e0d": backward-word
"\e0c": forward-word
"\e[h": beginning-of-line
"\e[f": end-of-line
"\e[1~": beginning-of-line
"\e[4~": end-of-line
#"\e[5~": beginning-of-history
#"\e[6~": end-of-history
"\e[5~": history-search-backward
"\e[6~": history-search-forward
"\e[3~": delete-char
"\e[2~": quoted-insert
(
Log in to post comments)