Move custom bash keybindings to separate inputrc
When bash is started without readline support, redefining bindings in .bashrc yields warnings. This is the case when starting bash as in Emacs' shell-mode, among others. Moving the keybindings to inputrc fixes this, and should make the bindings available to all programs using readline.
This commit is contained in:
parent
83e3c4a53d
commit
fed4dc8d38
4
bashrc
4
bashrc
|
@ -26,10 +26,6 @@ shopt -s extglob
|
||||||
# Update the values of LINES and COLUMNS.
|
# Update the values of LINES and COLUMNS.
|
||||||
shopt -s checkwinsize
|
shopt -s checkwinsize
|
||||||
|
|
||||||
# Enable Emacs-style M-p and M-n behavior
|
|
||||||
bind '"\ep": history-search-backward'
|
|
||||||
bind '"\en": history-search-forward'
|
|
||||||
|
|
||||||
# make less more friendly for non-text input files, see lesspipe(1)
|
# make less more friendly for non-text input files, see lesspipe(1)
|
||||||
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
|
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user