更新 lazy.zsh

This commit is contained in:
Steven Hobs 2025-07-05 13:25:43 +08:00
parent 5c6d832cd6
commit bb573860bf

View File

@ -19,13 +19,9 @@ LAZY_ZSH="$HOME/.lazyzsh"
}
# Binaries
[[ -d "$LAZY_ZSH/bin" ]] && {
if echo ":$PATH:" | grep -q ":lazyzsh:"; then
source $LAZY_ZSH/bin/.lazy_bin_init.zsh
else
[[ -d "$LAZY_ZSH/bin" ]] && ! echo ":$PATH:" | grep -q ":lazyzsh:" && {
PATH="$LAZY_ZSH/bin:$PATH"
source $LAZY_ZSH/bin/.lazy_bin_init.zsh
fi
}
# ~/.zsh_history
@ -34,10 +30,9 @@ HISTSIZE=1000
SAVEHIST=1000
HISTFILE="$HOME/.zsh_history"
# alias wsl2 profile
# alias wsl2
source "$LAZY_ZSH/alias.zsh" # inner custom alias
[[ -n $WSL_DISTRO_NAME ]] && source "$LAZY_ZSH/wsl2.zsh" # wsl custom
[[ -f ~/.profile ]] && source ~/.profile # load bash profile
# Proxy Switcher
function setproxy() {