There are multiple reasons why this is useful, including the ability to use shell completion to add a final argument to the command and the ability to see what command you are about to run without using the p option and needing to retype the history reference with an updated time value.

link|improve this question

feedback

1 Answer

up vote 1 down vote accepted

This works to always expand after you hit a space:

cat >> ~/.inputrc
$if Bash
    " ": magic-space
$endif
link|improve this answer
I just saw that a common .bashrc binding is bind Space:magic-space. Seems to work well. – jonderry May 26 '11 at 21:26
feedback

Your Answer

 
or
required, but never shown

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