10.3: Assign arrow keys to history search in bash

Oct 30, '03 09:47:00AM

Contributed by: Anonymous

With Panther, the default shell is now Bash. I had customized my tcsh shell using this hint In bash you can get similar results by adding this to your .bash_profile

bind '"M-[A":history-search-backward'
bind '"M-[B":history-search-forward'
where M-[A is the up key and M-[B is the down key.

Comments (9)


Mac OS X Hints
http://hints.macworld.com/article.php?story=20031026174236860