diff --git a/lazy.zsh b/lazy.zsh index 9e6b1e5..37d54ef 100644 --- a/lazy.zsh +++ b/lazy.zsh @@ -11,7 +11,7 @@ ZSH_PLUGIN_powerlevel10k=ON export LAZY_ZSH="$HOME/.lazyzsh" # Plugins -[ ! -d "$LAZY_ZSH/plugins" ] && . "$LAZY_ZSH/init_plugins.zsh" +[[ ! -d "$LAZY_ZSH/plugins" ]] && . "$LAZY_ZSH/init_plugins.zsh" [ "$ZSH_PLUGIN_syntax_highlighting" = ON ] && source "$LAZY_ZSH/plugins/syntax-highlighting/zsh-syntax-highlighting.zsh" [ "$ZSH_PLUGIN_autosuggestions" = ON ] && source "$LAZY_ZSH/plugins/autosuggestions/zsh-autosuggestions.zsh" [ "$ZSH_PLUGIN_powerlevel10k" = ON ] && { @@ -26,8 +26,8 @@ SAVEHIST=1000 HISTFILE="$HOME/.zsh_history" 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 +[[ -n $WSL_DISTRO_NAME ]] && source "$LAZY_ZSH/wsl2.zsh" # wsl custom +[[ -f ~/.profile ]] && source ~/.profile # load bash profile function setproxy() { local host=${1:-127.0.0.1} # 更改IP为您的代理软件监听IP, 默认127.0.0.1