Re:Run last command as root
by jrockway on Thursday December 16, 2010 @12:09PM
(#2012718)
If you use bash, read the "Command Line Editing" section of "info readline".
[ Parent
| on HN ]
Re:Run last command as root
by telemachos on Thursday December 16, 2010 @01:36PM
(#2013076)
You can also tweak the behavior of readline (for Bash and other applications) and custom make your own key combinations by editing your ~/.inputrc file. A random example from mine:
# Insert double quotes & set cursor between them
"\C-x\"": "\"\"\eb"
#
# Insert single quotes & set cursor between them
"\C-x'": "''\eb"
See also the Bash manual:http://www.gnu.org/software/bash/manual/bashref.html#Command...