history completion possible?

Marko Käning mk-lists at email.de
Thu Feb 18 09:03:42 PST 2010


The solution is to create a file .inputrc in home directory containing:
---
# these allow you to start typing a command and
# use the up/down arrow to auto complete from
# commands in your history
"\e[B": history-search-forward
"\e[A": history-search-backward
---
after typing something like "hg ci" the arrow keys will search now through history and find any formerly executed "hg ci..." command string! Just what I wanted!!! :)
 
Refs:
http://www.macosxhints.com/article.php?story=20060825071728278
http://snipplr.com/view/11266/inputrc-mac-os-x--bashrc-linux/


More information about the macports-users mailing list