You're replying to a comment by Amos Shapira.

Amos Shapira Permalink
June 16, 2008, 13:09

Does the string you type have to match the BEGINNING of the command line?

^R/^S will do incremental search but they will match any part of the line, not just the beginning. I couldn't find an interactive way to match the beginning in a search.

Just go through "man bash" (look for a section named "Searching" under "READLINE") to find all the details.

BTW - while looking for an answer for you I found that it's possible to interactively yank arguments from previous line to the current one. It's not the full power of "!" notation but for people who prefer a more visual feedback and are not already accustomed to the old way it might be a good compromise.

Reply To This Comment

(why do I need your e-mail?)

(Your twitter handle, if you have one.)

Type the word "lcd_42": (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.