Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm used to using the unix shell where when I write the beginning of a command (say ca) and hit the up arrow, I will only get commands in history that begin with "ca". In my current shell (brand new ubuntu) when I hit the up arrow I always get the previous command... Also, here typing Ctrl-P doesn't move me to the previous word... How can I get the shell that does?

share|improve this question

migrated from stackoverflow.com Jun 3 '11 at 8:35

This question came from our site for professional and enthusiast programmers.

1 Answer 1

For the history-search enter this into your ~/.inputrc

"\M-[A":history-search-backward
"\M-[B":history-search-forward
share|improve this answer
    
+1, indispensable. –  l0b0 Jun 3 '11 at 13:51

Your Answer

 
discard

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.