Skip to content

Instantly share code, notes, and snippets.

@martinratinaud
Created May 24, 2019 13:09
Show Gist options
  • Save martinratinaud/e9ec97ff4ce5fa5fbf84095d41daa616 to your computer and use it in GitHub Desktop.
Save martinratinaud/e9ec97ff4ce5fa5fbf84095d41daa616 to your computer and use it in GitHub Desktop.
printf -- "\033[32m ============================================= \033[0m\n";
printf -- "\033[32m Good morning dear \033[0m, Ready to rock?\n";
printf -- "\033[32m ============================================= \033[0m\n";
printf -- "Grab a coffee while I check if your repos are all clean\n"
STATUS=$(mgitstatus -e --no-stashes --no-upstream .. 1)
if [ -z "$STATUS" ]
then
printf -- "-> Welcome back!\n"
else
printf -- "Seems some stuff has been done while you were away.\n"
printf -- '\n';
echo -e "$STATUS"
fi
printf -- '\n';
exit 0;
printf -- '\n';
printf -- '\n';
printf -- "\033[32m ============================================= \033[0m\n";
printf -- "\033[32m Good Job \033[0m, I'm sure you rocked it today!\n";
printf -- "\033[32m ============================================= \033[0m\n";
printf -- '\n';
printf -- "Please do not forget to \033[33mreport the status of your work\033[0m to your dear colleagues?\n"
printf -- '\n';
printf -- "And let me check if your repos are all clean\n"
STATUS=$(mgitstatus -e --no-pull --no-stashes --no-upstream .. 1)
if [ -z "$STATUS" ]
then
printf -- "-> All right, see you!\n"
else
printf -- "Seems you did not commit something.\n"
echo -e "$STATUS"
fi
printf -- '\n';
exit 0;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment