aboutsummaryrefslogtreecommitdiff
path: root/readline
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2015-05-22 15:05:35 +1200
committerTom Ryder <tom@sanctum.geek.nz>2015-05-22 15:05:35 +1200
commitca881691de1c563796b8882b473fa0da19471222 (patch)
treef05a1618b15f720e584914a65ac07dc4eba64520 /readline
parentRemove exec calls so trap works correctly (diff)
downloaddotfiles-ca881691de1c563796b8882b473fa0da19471222.tar.gz
dotfiles-ca881691de1c563796b8882b473fa0da19471222.zip
Shortcut for prepending "exec" to a line
Diffstat (limited to 'readline')
-rw-r--r--readline/inputrc5
1 files changed, 5 insertions, 0 deletions
diff --git a/readline/inputrc b/readline/inputrc
index e423e006..2443309e 100644
--- a/readline/inputrc
+++ b/readline/inputrc
@@ -28,3 +28,8 @@ set show-all-if-ambiguous On
# Don't re-complete already completed text in the middle of a word
set skip-completed-text On
+# In Bash, Alt-E to prepend "exec " to a command and return to the end of the line
+$if Bash
+ "\ee": "\C-aexec \C-e"
+$endif
+