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.

Is there a package I can download for Ubuntu that would allow me to type in,for example, cd [tab key] and then it would go through the recent cd commands I've typed in?

share|improve this question

migrated from stackoverflow.com Sep 19 '11 at 19:43

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

    
Is the question only about cd? In that case I would recommend making aliases for pushd and popd. –  A.H. Sep 19 '11 at 17:16
add comment

2 Answers 2

If you type:

CTRL+r cd

Then scroll back through time by doing CTRL+r again and again...

then it should do what you want.

share|improve this answer
    
Hey, thanks. Just what I needed. It would be better if you could just use tab, but I'm sure I could just code it myself while I'm playing around with the linux source code anyways. Thanks again. –  JoeShmoe Sep 19 '11 at 17:20
    
Keep in mind that this does not apply to every possible shell. But this is possible on the default shell (bash). –  Zoredache Sep 19 '11 at 20:08
add comment

There isn't this option, but the most used Linux have a package called bash_completion that extends the TAB function.

http://packages.ubuntu.com/natty/bash-completion

share|improve this answer
add comment

Your Answer

 
discard

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