更新别名
This commit is contained in:
parent
640138a8d1
commit
848151a728
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user