Skip to content

Instantly share code, notes, and snippets.

@a7madM
Created November 26, 2018 22:38
Show Gist options
  • Save a7madM/28f81e7984a3831028c381c524d7908e to your computer and use it in GitHub Desktop.
Save a7madM/28f81e7984a3831028c381c524d7908e to your computer and use it in GitHub Desktop.
google-chrome www.youtube.com
off_day() {
echo "Off Day, Happy Weekend"
}
working_day() {
echo "Happy Working"
# postman
# open vs code in specific services
# add more and more services ya bashmohands Tarek :D
code ~/workspace/service-x
code ~/workspace/service-y
code ~/workspace/service-z
# fetch and pull - git
cd ~/workspace/service-x
git fetch && git pull
cd ~/workspace/service-y
git fetch && git pull
}
# DAYS => MON is 1 and SUN is 7
DAYOFWEEK=$(date +"%u")
FRI=5 SAT=6
if [ "${DAYOFWEEK}" -eq $SAT -o "${DAYOFWEEK}" -eq $FRI ]
then
off_day
else
working_day
fi
@a7madM
Copy link
Author

a7madM commented Nov 26, 2018

script that runs when OS starts, to make the environment ready.

  • open chrome browser
  • open VS Code for working services only in working days
  • fetch and pull code from remote repositories only in working days

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment