diff --git a/wsl2.zsh b/wsl2.zsh index 804efb9..db7a207 100644 --- a/wsl2.zsh +++ b/wsl2.zsh @@ -2,7 +2,7 @@ alias open="/mnt/c/Windows/explorer.exe" alias notepad="/mnt/c/Windows/notepad.exe" -export NET_GATE="$(/bin/ip r | head -n1 | cut -d' ' -f3)" +export NET_GATE="$(ip -c=never r | head -n1 | cut -d' ' -f3)" # WSLG if [[ -z $DISPLAY ]]; then diff --git a/x_add_cli.zsh b/x_add_cli.zsh index 5a21758..e191766 100644 --- a/x_add_cli.zsh +++ b/x_add_cli.zsh @@ -2,13 +2,13 @@ # 1改为0或者注释掉行 -> 禁用安装 cli_7zip=1 # 7zip压缩 https://www.7-zip.org -cli_fastfetch=0 # 系统信息 https://github.com/fastfetch-cli/fastfetch +cli_fastfetch=1 # 系统信息 https://github.com/fastfetch-cli/fastfetch cli_superfile=0 # 文件管理 https://github.com/yorukot/superfile cli_zoxide=1 # 智能cd https://github.com/ajeetdsouza/zoxide cli_bottom=1 # 系统监测 https://github.com/ClementTsang/bottom cli_fd=1 # 文件查找 https://github.com/sharkdp/fd cli_bat=0 # 内容查看 https://github.com/sharkdp/bat -cli_aichat=1 # AI聊天 https://github.com/sigoden/aichat +cli_aichat=0 # AI聊天 https://github.com/sigoden/aichat ## 安装 LAZY_BIN=~/.lazyzsh/bin @@ -63,7 +63,6 @@ function gh_release() { tar -zxf $LAZY_BIN_TMP/zoxide.tar.gz -C $LAZY_BIN_TMP cp $LAZY_BIN_TMP/zoxide $LAZY_BIN echo 'eval "$(zoxide init zsh)"' >>$LAZY_BIN_INIT - echo 'alias cd=z' >>$LAZY_BIN_INIT else echo "[lazyzsh:x] cli-zoxide download fail!" fi @@ -108,8 +107,6 @@ function gh_release() { if [[ $? == 0 ]]; then tar -zxf $LAZY_BIN_TMP/aichat -C $LAZY_BIN_TMP cp $LAZY_BIN_TMP/aichat $LAZY_BIN - echo 'alias ac=aichat' >>$LAZY_BIN_INIT - echo 'alias @=\"aichat -e \"' else echo "[lazyzsh:x] cli-aichat download fail!" fi