history completion possible?

Ryan Schmidt ryandesign at macports.org
Wed Feb 17 18:25:43 PST 2010


On Feb 17, 2010, at 17:29, Marko Käning wrote:

> I might be confused right now about the tab history completion. (Have to check again its exact behaviour on my linux laptop - when I feel the need to start it up again.) :)
> 
> BUT, the history completion with page up and down works differently to what arrow up and down do. The letter just scroll the history, page up and down search up and down in history for commands which start with the letters already typed in.
> 
> Say, I have entered the string "hg ci" in my command line. If I now use page up, bash will scroll through all my previous "hg ci" commands. I used this to quickly reuse old message strings, since page up would e.g. allow to reaccess something like "hg ci -m '- 12.2.10: account download' ".


I use the up and down arrow keys for this. By default they go to the previous and next history entry, respectively, irrespective of what you've typed. But I've configured my bash to do as you say, which lets me type, say, "svn" and then press the up arrow to see the previous command that started with "svn". However, I don't remember how I did that (it was years ago) and I can't find anything about it in my bash configuration files, so I'm at a loss.

The page-up and page-down keys are not available because they are intercepted by Terminal.app to handle scrolling of the terminal window.




More information about the macports-users mailing list