1
0
Fork 0

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.
master
Dustin 2018-02-19 08:14:36 -06:00
parent c68761170b
commit ee0abcda84
1 changed files with 1 additions and 1 deletions

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