Point to 'C-x C-e' command in bash.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Sat, 03 Apr 2010 11:09:46 +0300
changeset 55 8fd48debf4cc
parent 54 95a79aeb9abb
child 56 47272014a49a
child 57 99d0eb7974d6
child 59 9c0a6fa1b7bd
Point to 'C-x C-e' command in bash.
.inputrc
--- a/.inputrc	Sat Apr 03 10:56:25 2010 +0300
+++ b/.inputrc	Sat Apr 03 11:09:46 2010 +0300
@@ -50,6 +50,13 @@
 # is 'off' by default.
 set mark-modified-lines off
 
+$if Bash
+# Invoke an editor on the current command line, and execute the result as
+# shell commands. Bash attempts to invoke $FCEDIT, $EDITOR, and emacs as the
+# editor, in that order.
+"\C-x\C-e": edit-and-execute-command
+$endif
+
 # Local Variables:
 # mode: shell-script
 # fill-column: 78