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"