git克隆改用镜像源ghfast.top
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
mkdir -p "$LAZY_ZSH/plugins"
|
||||
git clone --depth 1 "https://gitcode.com/zsh-users/zsh-syntax-highlighting.git" "$LAZY_ZSH/plugins/syntax-highlighting"
|
||||
git clone --depth 1 "https://gitcode.com/zsh-users/zsh-autosuggestions.git" "$LAZY_ZSH/plugins/autosuggestions"
|
||||
git clone --depth 1 "https://gitcode.com/romkatv/powerlevel10k.git" "$LAZY_ZSH/plugins/powerlevel10k"
|
||||
GITHUB_MIRROR="https://ghfast.top/"
|
||||
git clone --depth 1 "${GITHUB_MIRROR}https://github.com/zsh-users/zsh-syntax-highlighting.git" "$LAZY_ZSH/plugins/syntax-highlighting"
|
||||
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"
|
@@ -2,12 +2,12 @@
|
||||
|
||||
# 1改为0或者注释掉行 -> 禁用安装
|
||||
cli_7zip=1 # 7zip压缩 https://www.7-zip.org
|
||||
cli_fastfetch=1 # 系统信息 https://github.com/fastfetch-cli/fastfetch
|
||||
cli_superfile=1 # 文件管理 https://github.com/yorukot/superfile
|
||||
cli_fastfetch=0 # 系统信息 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=1 # 内容查看 https://github.com/sharkdp/bat
|
||||
cli_bat=0 # 内容查看 https://github.com/sharkdp/bat
|
||||
cli_aichat=1 # AI聊天 https://github.com/sigoden/aichat
|
||||
|
||||
## 安装
|
||||
@@ -108,7 +108,8 @@ 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 @=aichat' >>$LAZY_BIN_INIT
|
||||
echo 'alias ac=aichat' >>$LAZY_BIN_INIT
|
||||
echo 'alias @=\"aichat -e \"'
|
||||
else
|
||||
echo "[lazyzsh:x] cli-aichat download fail!"
|
||||
fi
|
||||
|
Reference in New Issue
Block a user