Update lazy.zsh

This commit is contained in:
Steven Hobs
2026-03-31 10:07:19 +08:00
committed by GitHub
parent 9f2625c0bf
commit 2b6e289ede

View File

@@ -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