!find

Ovid on 2007-02-19T14:26:58

You know, when you're running bash, it's real fun to type !find discover that the last find command ended with | xargs rm. Fortunately it was only deleting vim swap files I didn't need, so no harm done, but I must remember ctrl-r in the future.


Re: !find

vek on 2007-02-19T15:21:07

I've been bitten by something similar in the past which is why I always scroll through my bash history with my arrow keys so that I can see the exact command before hitting enter. You know, just in case ;-)

Some .inputrc goodness

rafael on 2007-02-19T15:29:55

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

That way, up and down arrow search through history lines that begin with what you've just entered.

Re:Some .inputrc goodness

Ovid on 2007-02-19T15:34:40

Someone else recommended Magic Space to me just now. Today's the first I've ever heard of .inputrc and now I hear it twice in one day :)

Thanks for the tip. It works great.

Re:Some .inputrc goodness

Dom2 on 2007-02-20T07:51:38

And just to make sure:

  set +H