From 848151a7282a1c3e6b10f86fa1fc6216837b0ae3 Mon Sep 17 00:00:00 2001 From: lsy Date: Mon, 23 Sep 2024 21:03:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=88=AB=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Menus/Install.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Menus/Install.sh b/Menus/Install.sh index 3fa8a3b..1d9909f 100644 --- a/Menus/Install.sh +++ b/Menus/Install.sh @@ -23,20 +23,21 @@ chmod +x "$path/linuxtool/Run.sh" &> /dev/null if [[ -e "${HOME}/.bashrc" ]];then sed -i '/alias tool.*/d' "${HOME}/.bashrc" echo "alias tool='$path/linuxtool/Run.sh'" | cat >> "${HOME}/.bashrc" - source "${HOME}/.bashrc" + source "${HOME}/.bashrc" &> /dev/null fi if [[ -e "${HOME}/.profile" ]];then sed -i '/alias tool.*/d' "${HOME}/.profile" echo "alias tool='$path/linuxtool/Run.sh'" | cat >> "${HOME}/.profile" - source "${HOME}/.profile" + source "${HOME}/.profile" &> /dev/null fi if [[ -e "${HOME}/.zshrc" ]];then sed -i '/alias tool.*/d' "${HOME}/.zshrc" echo "alias tool='$path/linuxtool/Run.sh'" | cat >> "${HOME}/.zshrc" - source "${HOME}/.zshrc" + source "${HOME}/.zshrc" &> /dev/null fi +alias tool="$path/linuxtool/Run.sh" echo "工具箱已经安装成功" echo "位置:${path}/linuxtool"