zsh: add editing mode setup check

pull/6/head
bretello 2022-02-07 20:49:58 +01:00
parent 85381436cf
commit 6fa513850c
Signed by: brethil
GPG Key ID: 876AAC6290170FE7
1 changed files with 4 additions and 0 deletions

View File

@ -58,6 +58,10 @@ bindkey -a '^[[3~' delete-char
export KEYTIMEOUT=50 # reduce the transition time between vim modes to 0.1s
# bindkey -M vicmd 'V' edit-command-line # this remaps `vv` to `V` (but overrides `visual-mode`) # add this if the keytimeout is too slow
if ! grep -q "set editing-mode vi" $HOME/.inputrc &> /dev/null; then
echo "set editing-mode vi" >> ~/.inputrc && echo "Warning: set up editing-mode ~/.inputrc"
fi
export HISTSIZE=10000000