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