更合理的网关路由获取,部分插件不预装

This commit is contained in:
Super User
2025-09-16 17:44:26 +08:00
parent ccc2400019
commit b2a809833e
2 changed files with 3 additions and 6 deletions

View File

@@ -2,7 +2,7 @@
alias open="/mnt/c/Windows/explorer.exe" alias open="/mnt/c/Windows/explorer.exe"
alias notepad="/mnt/c/Windows/notepad.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 # WSLG
if [[ -z $DISPLAY ]]; then if [[ -z $DISPLAY ]]; then

View File

@@ -2,13 +2,13 @@
# 1改为0或者注释掉行 -> 禁用安装 # 1改为0或者注释掉行 -> 禁用安装
cli_7zip=1 # 7zip压缩 https://www.7-zip.org 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_superfile=0 # 文件管理 https://github.com/yorukot/superfile
cli_zoxide=1 # 智能cd https://github.com/ajeetdsouza/zoxide cli_zoxide=1 # 智能cd https://github.com/ajeetdsouza/zoxide
cli_bottom=1 # 系统监测 https://github.com/ClementTsang/bottom cli_bottom=1 # 系统监测 https://github.com/ClementTsang/bottom
cli_fd=1 # 文件查找 https://github.com/sharkdp/fd cli_fd=1 # 文件查找 https://github.com/sharkdp/fd
cli_bat=0 # 内容查看 https://github.com/sharkdp/bat 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 LAZY_BIN=~/.lazyzsh/bin
@@ -63,7 +63,6 @@ function gh_release() {
tar -zxf $LAZY_BIN_TMP/zoxide.tar.gz -C $LAZY_BIN_TMP tar -zxf $LAZY_BIN_TMP/zoxide.tar.gz -C $LAZY_BIN_TMP
cp $LAZY_BIN_TMP/zoxide $LAZY_BIN cp $LAZY_BIN_TMP/zoxide $LAZY_BIN
echo 'eval "$(zoxide init zsh)"' >>$LAZY_BIN_INIT echo 'eval "$(zoxide init zsh)"' >>$LAZY_BIN_INIT
echo 'alias cd=z' >>$LAZY_BIN_INIT
else else
echo "[lazyzsh:x] cli-zoxide download fail!" echo "[lazyzsh:x] cli-zoxide download fail!"
fi fi
@@ -108,8 +107,6 @@ function gh_release() {
if [[ $? == 0 ]]; then if [[ $? == 0 ]]; then
tar -zxf $LAZY_BIN_TMP/aichat -C $LAZY_BIN_TMP tar -zxf $LAZY_BIN_TMP/aichat -C $LAZY_BIN_TMP
cp $LAZY_BIN_TMP/aichat $LAZY_BIN cp $LAZY_BIN_TMP/aichat $LAZY_BIN
echo 'alias ac=aichat' >>$LAZY_BIN_INIT
echo 'alias @=\"aichat -e \"'
else else
echo "[lazyzsh:x] cli-aichat download fail!" echo "[lazyzsh:x] cli-aichat download fail!"
fi fi