vi-mode: Also configure readline

The GNU readline library also has a vi editing mode, but as it is
initialized at application start up, the only way to configure it is to
write a configuration file. The library will read from `~/.inputrc` by
default, but this can be overridden using the `INPUTRC` environment
variable.
This commit is contained in:
2018-02-19 08:14:36 -06:00
parent c68761170b
commit ee0abcda84

View File

@@ -1 +1 @@
export EDITOR=vi; set -o vi; [ -x /usr/bin/tmux ] && tmux setw -g mode-keys vi
export EDITOR=vi; set -o vi; [ -x /usr/bin/tmux ] && tmux setw -g mode-keys vi; export INPUTRC=$(mktemp); echo 'set editing-mode vi' > ${INPUTRC}; trap 'rm ${INPUTRC}' EXIT