From 664b8b84b091516effb8c4e07f0a02d7a6c43bc3 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 14 Oct 2015 15:44:50 +1300 Subject: Restore previous command line in readline macros --- readline/inputrc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/readline/inputrc b/readline/inputrc index b969c7bb..7396e320 100644 --- a/readline/inputrc +++ b/readline/inputrc @@ -36,13 +36,13 @@ $if Bash # the line "\ee": "\C-aexec \C-e" # Alt-H (for home) to go $HOME - "\eh": "cd\C-j" + "\eh": "\C-ucd\C-j\C-y" # Alt-L (for ls) to run ls -Al - "\el": "ls -Al\C-j" + "\el": "\C-uls -Al\C-j\C-y" # Alt-M (for muxer) to run tmux - "\em": "tmux\C-j" + "\em": "\C-utmux\C-j\C-y" # Alt-R (for repeat) to run the previous command in history again - "\er": "\C-p\C-j" + "\er": "\C-u\C-p\C-j\C-y" # Alt-S (for set) to wrap current command in (set -x ; ...) "\es": "\C-a(set -x ; \C-e)\C-b" $endif -- cgit v1.2.3