Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

After I upgraded to OS X I am not able to use my ~/.inputrc bindings to search through the shell command history:

# 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

Any idea what I have to change or do? Are there any default keys for that I could use?

share|improve this question
I don't know what could be wrong, but for comparison my .inputrc has the same bindings as yours and they work (Mac OS X Lion 10.7.1). In fact, if I remove my .inputrc altogether, the arrow keys still work, since by default they map to similar history commands, as shown by bind -P. What happens to the up/down arrow keys if you remove (or rename) your .inputrc file? – Chris Page Sep 26 '11 at 11:52
up vote 5 down vote accepted

The up/down history scrolling in Terminal only works in bash, not sh. Try typing bash in Terminal, and see whether the arrow keys work. If this is the case, you can go to preferences and set your default login shell to /bin/bash.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.