fix: don't start vim on term reload

This commit is contained in:
Chen Asraf
2023-06-20 19:21:51 +03:00
parent 1b0e9f701a
commit 7c06ef28b4

3
.zshrc
View File

@@ -19,7 +19,8 @@ zstyle ':completion:*:*:*:*:*' menu select
# Use ESC to edit the current command line:
# check if edit-command-line not already loaded
if [[ ! -n "$(bindkey -L | grep edit-command-line)" ]]; then
which edit-command-line &>/dev/null
if [[ $? -ne 0 ]]; then
autoload -U edit-command-line
zle -N edit-command-line
bindkey -M vicmd V edit-command-line