How to make the terminal auto-complete from the command history? In Linux, I had managed to set up the terminal in such a way that if I type part of a command and press the arrow key 'up', it would auto-complete with the last command that started with what I had typed.

I tried to do this following the instructions on http://hints.macworld.com/article.php?story=20031026174236860, but it doesn't seem to work. Does anyone know how to set this up on a Mac?
You may use reverse-search.
Just press ctrl+R and start typing your command, and then just press Enter.