diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2022-05-30 13:07:34 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2022-05-30 22:01:57 -0700 |
commit | 64539e39f8a02054107dc59198f1be4ed6dde56d (patch) | |
tree | 81b05872239758b65cd52af3d07bc78e0d909b6a /.inputrc | |
parent | e6faede2cbbd1208bc422b78ba52e576bb336be7 (diff) | |
download | dotfiles-64539e39f8a02054107dc59198f1be4ed6dde56d.tar.gz |
move some readline history commands to be more like Emacs
Diffstat (limited to '.inputrc')
-rw-r--r-- | .inputrc | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -6,6 +6,22 @@ $include /etc/inputrc "\C-x\C-d": kill-region "\ew": copy-region-as-kill +# previous-history, next-history and reverse-search-history are very +# frequently used, so perhaps we shouldn't rebind them, because doing so makes +# it harder to use arbitrary shells on machines without my .inputrc installed. +# On the other hand, I use Eshell/comint much more than bash, and often type +# M-p and M-n into bash by mistake. +# +# Don't rebind the commands normally bound to M-p and M-n to C-p and C-n +# because those commands are not very useful, and this way C-p and C-n still +# have their default bindings, meaning we depart less from standard shells. + +"\ep": previous-history +"\en": next-history +"\er": reverse-search-history +"\es": forward-search-history +"\C-xxg": revert-line + # --- settings set editing-mode emacs |