Skip to content

Commit

Permalink
Remove forced quit
Browse files Browse the repository at this point in the history
Now the alias is automatically set or removed without closing the terminal
  • Loading branch information
archetipico committed Jun 28, 2021
1 parent 251c6bd commit 7efff94
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
6 changes: 1 addition & 5 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,5 @@ else
printProgress "Setup completed."
fi

printf "${RED}"
read -p "Press enter, the process will be killed:\nif your terminal closes, open a new one to see changes." text
printf "${NORMAL}"

kill -9 $PPID
exec bash
exit 0
7 changes: 2 additions & 5 deletions uninstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@ source src/utils/global.sh
sed -i "/alias up=/d" ~/.bashrc
printf "${RED}Alias 'up' removed\n"

printf "\nUninstallation completed\n"
printf "\nUninstallation completed\n${NORMAL}"

read -p "Press enter, the process will be killed. If your terminal closes, open a new one." text
printf "${NORMAL}"

kill -9 $PPID
exec bash
exit 0

0 comments on commit 7efff94

Please sign in to comment.