Super User is a question and answer site for computer enthusiasts and power users. 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

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 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

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

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

share|improve this answer

You must log in to answer this question.