aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2015-07-13 12:54:52 +1200
committerTom Ryder <tom@sanctum.geek.nz>2015-07-13 12:54:52 +1200
commitbc3d9e20f4168395d85f4743886f6ffe25eee9bb (patch)
treebd7ead0408066cf65b8614a6489e0308c8645d8d
parentFix confusing comment with poor grammar (diff)
downloaddotfiles-bc3d9e20f4168395d85f4743886f6ffe25eee9bb.tar.gz
dotfiles-bc3d9e20f4168395d85f4743886f6ffe25eee9bb.zip
Alt+R to repeat last command
-rw-r--r--readline/inputrc2
1 files changed, 2 insertions, 0 deletions
diff --git a/readline/inputrc b/readline/inputrc
index 13cd6487..b969c7bb 100644
--- a/readline/inputrc
+++ b/readline/inputrc
@@ -41,6 +41,8 @@ $if Bash
"\el": "ls -Al\C-j"
# Alt-M (for muxer) to run tmux
"\em": "tmux\C-j"
+ # Alt-R (for repeat) to run the previous command in history again
+ "\er": "\C-p\C-j"
# Alt-S (for set) to wrap current command in (set -x ; ...)
"\es": "\C-a(set -x ; \C-e)\C-b"
$endif