git克隆改用镜像源ghfast.top

This commit is contained in:
root
2025-08-29 19:09:22 +08:00
parent f82fb011aa
commit ccc2400019
2 changed files with 9 additions and 7 deletions

View File

@@ -1,4 +1,5 @@
mkdir -p "$LAZY_ZSH/plugins" mkdir -p "$LAZY_ZSH/plugins"
git clone --depth 1 "https://gitcode.com/zsh-users/zsh-syntax-highlighting.git" "$LAZY_ZSH/plugins/syntax-highlighting" GITHUB_MIRROR="https://ghfast.top/"
git clone --depth 1 "https://gitcode.com/zsh-users/zsh-autosuggestions.git" "$LAZY_ZSH/plugins/autosuggestions" git clone --depth 1 "${GITHUB_MIRROR}https://github.com/zsh-users/zsh-syntax-highlighting.git" "$LAZY_ZSH/plugins/syntax-highlighting"
git clone --depth 1 "https://gitcode.com/romkatv/powerlevel10k.git" "$LAZY_ZSH/plugins/powerlevel10k" git clone --depth 1 "${GITHUB_MIRROR}https://github.com/zsh-users/zsh-autosuggestions.git" "$LAZY_ZSH/plugins/autosuggestions"
git clone --depth 1 "${GITHUB_MIRROR}https://github.com/romkatv/powerlevel10k.git" "$LAZY_ZSH/plugins/powerlevel10k"

View File

@@ -2,12 +2,12 @@
# 1改为0或者注释掉行 -> 禁用安装 # 1改为0或者注释掉行 -> 禁用安装
cli_7zip=1 # 7zip压缩 https://www.7-zip.org cli_7zip=1 # 7zip压缩 https://www.7-zip.org
cli_fastfetch=1 # 系统信息 https://github.com/fastfetch-cli/fastfetch cli_fastfetch=0 # 系统信息 https://github.com/fastfetch-cli/fastfetch
cli_superfile=1 # 文件管理 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=1 # 内容查看 https://github.com/sharkdp/bat cli_bat=0 # 内容查看 https://github.com/sharkdp/bat
cli_aichat=1 # AI聊天 https://github.com/sigoden/aichat cli_aichat=1 # AI聊天 https://github.com/sigoden/aichat
## 安装 ## 安装
@@ -108,7 +108,8 @@ 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 @=aichat' >>$LAZY_BIN_INIT 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