From 74bc4baae854ed1065aa2c35495d0a5cf3e59fbe Mon Sep 17 00:00:00 2001 From: lsy Date: Mon, 23 Sep 2024 17:02:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AE=89=E8=A3=85=E5=91=BD?= =?UTF-8?q?=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Menus/Install.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Menus/Install.sh b/Menus/Install.sh index b2ae76a..7ecc4ce 100644 --- a/Menus/Install.sh +++ b/Menus/Install.sh @@ -22,8 +22,12 @@ chmod +x "$path/linuxtool/Run.sh" &> /dev/null sed -i '/alias tool.*/d' "${HOME}/.bashrc" echo "alias tool='$path/linuxtool/Run.sh'" | cat >> "${HOME}/.bashrc" - source "${HOME}/.bashrc" + +sed -i '/alias tool.*/d' "${HOME}/.profile" +echo "alias tool='$path/linuxtool/Run.sh'" | cat >> "${HOME}/.profile" +source "${HOME}/.profile" + export tool="$path/linuxtool/Run.sh" echo "工具箱已经安装成功"