From ece03cda860dd14d1b62f4186b76c3d1b25069e2 Mon Sep 17 00:00:00 2001 From: xunmi-pc <寻觅> Date: Wed, 6 Mar 2024 18:10:28 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=9B=B4=E6=96=B0]=20=E5=A6=82=E6=9E=9C?= =?UTF-8?q?=E6=9C=AC=E6=9C=BA=E5=B7=B2=E6=9C=89zsh,=20=E5=88=99=E4=B8=8D?= =?UTF-8?q?=E4=BC=9A=E5=8E=BB=E9=85=8D=E7=BD=AEzsh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 +--- start.sh | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 49fbcf2..5ca29c6 100644 --- a/README.md +++ b/README.md @@ -4,10 +4,8 @@ 使用zsh替代老旧的bash, 使用一些现代化的工具替代老旧工具集, 并且将部分命令添加汉化别名, 避免长时间未使用时遗忘命令 ```bash -# 无zsh或向使用言灵的zsh配置代替原zsh配置 +# 言灵安装命令, 请在命令行中执行如下命令 wget -q --show-progress https://gitea.whlug.cn/xunmi/x/raw/start.sh && bash start.sh -# 已有zsh且不想使用言灵的zsh代替原有配置 -wget -q --show-progress https://gitea.whlug.cn/xunmi/x/raw/安装.zsh && zsh 安装.zsh ``` ## 功能实现 diff --git a/start.sh b/start.sh index f00a9ca..833e34d 100755 --- a/start.sh +++ b/start.sh @@ -126,7 +126,7 @@ Download_X(){ ([ -x "$(command -v git)" ] && [ -x "$(command -v zsh)" ]) || Install_PKG # 如果携带 -c 则不下载安装ohmyzsh -[[ "$@" == *-c* ]] || Download_Config +([ -x "$(command -v zsh)" ] || [[ "$@" == *-c* ]]) || Download_Config # 如果携带 -x 则不下载安装言灵 [[ "$@" == *-x* ]] || Download_X sudo chown -R $USER:$USER $x_dir