Re: Command line history -

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

 



Ralph E. Kenyon, Jr. wrote:

On Wed, 17 Mar 2004 11:28:54 -0500, Bob Goodwin <robert.goodwin2@xxxxxxxxxxxxxxxx> wrote:

Recently there was mention of a line added to a configuration file to obtain automatic completion of command line entries, that is enter a few letters and press the up arrow to complete the command.

I reinstalled/reformatted RH-9 and lost that change and have not been able to locate it. If anyone understands what I'm talking about I would appreciate receiving that information once more.

Thank you.

Bob Goodwin


I think this is what you want:

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.




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






Yes, thank you much, this is what I was looking for. I usually archive items of interest but with the reformat/reinstall I lost more stuff than I planned on.

Bob Goodwin


-- 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