1
0
mirror of https://git.decapod.one/brethil/dotfiles synced 2024-12-22 13:31:40 +01:00

zsh: add editing mode setup check

This commit is contained in:
bretello 2022-02-07 20:49:58 +01:00
parent 85381436cf
commit 6fa513850c
Signed by: brethil
GPG Key ID: 876AAC6290170FE7

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