Created
November 26, 2018 22:38
-
-
Save a7madM/28f81e7984a3831028c381c524d7908e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
script that runs when OS starts, to make the environment ready.