Skip to content

Instantly share code, notes, and snippets.

View radwebhosting's full-sized avatar
🎯
Focusing

Rad Web Hosting radwebhosting

🎯
Focusing
View GitHub Profile
@adikari
adikari / reload_bash_shell.sh
Created December 8, 2017 02:06
reload shell from bash and continue
if [ -f /var/run/rebooting-for-updates ]; then
# start from where we left off on reboot
sed -i '/bash/d' ~/.zshrc
sudo rm -f /var/run/rebooting-for-updates
echo "continuing after shell reload.."
else
echo "running script for the first time"