From 47713e1e13b5575447f934cbe1f6640d2530b8fd Mon Sep 17 00:00:00 2001 From: Sirisak Lueangsaksri <1087399+spywhere@users.noreply.github.com> Date: Fri, 10 Nov 2023 15:12:52 +0700 Subject: [PATCH] refactor(zsh): better vim detection --- configs/zsh/zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/zsh/zshrc b/configs/zsh/zshrc index 4ae7295..ca6e52d 100644 --- a/configs/zsh/zshrc +++ b/configs/zsh/zshrc @@ -94,7 +94,7 @@ fi # typeset -g suggestion="$pattern from openai" # } -if ! (echo "$PATH" | grep -q vim) && test -z "$TMUX" -a -z "$TERM_PROGRAM" -a ! -f ~/no-tmux; then +if test -z "$VIM" && test -z "$TMUX" && test -z "$TERM_PROGRAM" && test ! -f ~/no-tmux; then zinit ice lucid wait"0" zinit snippet OMZ::plugins/tmux else