Thursday, December 25, 2008

Put last word in quotes

Really useful tidbit from the readline manual:

Put the following in your .inputrc:

$if Bash
# quote the current or previous word
"\C-g": "\eb\"\ef\""
$endif


Now cntrl-g will surround the previous or current argument with quote characters.

No comments: