Re: command recall and editing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 30 Dec 2003 11:52:33 -0500, Robert Spangler <bms@xxxxxxxxxxxxxxxx> wrote:

On Tue December 30 2003 02:37, Ralph E. Kenyon, Jr. wrote:

I'm just getting started with Linux. The bash command recall seems to be
very simple compared to what I'm used to. Bash only allows up and down
arrows to scroll through the entire .bash_history file one command at a
time.

Here is a way to jump directly to the command in the .bash_history file.


Edit your /etc/inputrc file and add the following:

	"\M-[A":history-search-backward
	"\M-[B":history-search-forward

Then restart bash type the first letter or 2 of a previously typed command and
you will jump to that command. The more letter you type in first the more
you will narrow the search to.


By typing part of a previously used command, and then pressing the up or
down arrows, scrolling is limited to only those command which match the
letters that have been typed. (The history can also be configured to
eliminate storing duplicates of commands that are re-executed.)

The above will do exactly this for you.




Absolutely Wonderful!!! It works perfectly! Thank you.

It is possible to setup the Escape key to exit out of the command recall process once it is started?

Thanks,


-- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/


-- Shrike-list mailing list Shrike-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/shrike-list

[Index of Archives]     [Fedora Users]     [Centos Users]     [Kernel Development]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat Phoebe Beta]     [Yosemite Forum]     [Fedora Discussion]     [Gimp]     [Stuff]     [Yosemite News]

  Powered by Linux