From 2b6e289ede767b6a6adf2e406eed36ef39ffb79b Mon Sep 17 00:00:00 2001 From: Steven Hobs <47906512+stevenhobs@users.noreply.github.com> Date: Tue, 31 Mar 2026 10:07:19 +0800 Subject: [PATCH] Update lazy.zsh --- lazy.zsh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lazy.zsh b/lazy.zsh index 0c253c0..0f7ec3e 100644 --- a/lazy.zsh +++ b/lazy.zsh @@ -19,10 +19,10 @@ LAZY_ZSH="$HOME/.lazyzsh" } # Binaries -[[ -d "$LAZY_ZSH/bin" ]] && ! echo ":$PATH:" | grep -q "lazyzsh/bin" && { - PATH="$LAZY_ZSH/bin:$PATH" - source $LAZY_ZSH/bin/.lazy_bin_init.zsh -} +if [[ -d "$LAZY_ZSH/bin" ]]; then + [[ ":$PATH:" != *":$LAZY_ZSH/bin:"* ]] && PATH="$LAZY_ZSH/bin:$PATH" + [[ -f "$LAZY_ZSH/bin/.lazy_bin_init.zsh" ]] && source "$LAZY_ZSH/bin/.lazy_bin_init.zsh" +fi # ~/.zsh_history setopt histignorealldups sharehistory