This commit is contained in:
Steven Hobs 2025-05-09 01:14:50 +08:00
parent a307729742
commit 6107834048

View File

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