From b3043d3e52fdb13127bda5aa89b5c57eefbbace9 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Tue, 15 Dec 2015 16:29:37 +1300 Subject: Shortcut to wrap a line in a function --- readline/inputrc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'readline') diff --git a/readline/inputrc b/readline/inputrc index 7396e320..396eb28b 100644 --- a/readline/inputrc +++ b/readline/inputrc @@ -41,6 +41,9 @@ $if Bash "\el": "\C-uls -Al\C-j\C-y" # Alt-M (for muxer) to run tmux "\em": "\C-utmux\C-j\C-y" + # Alt-P (for procedure) to wrap current command in () { ... ; } and go to + # the start of the line + "\ep": "\C-a() { \C-e ; }\C-a" # Alt-R (for repeat) to run the previous command in history again "\er": "\C-u\C-p\C-j\C-y" # Alt-S (for set) to wrap current command in (set -x ; ...) -- cgit v1.2.3