Last active
April 3, 2020 07:33
-
-
Save kmkmjhyiiiu/98bb47cbf3b4fd876f2a1c36b490bd81 to your computer and use it in GitHub Desktop.
my favourite first githook before comitting
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
#!/bin/sh | |
# Output colors | |
red='\033[0;31m'; | |
green='\033[0;32m'; | |
yellow='\033[0;33m'; | |
default='\033[0;m'; | |
bold=$(tput bold); | |
# current branch name. | |
branch_name="$(git symbolic-ref HEAD 2>/dev/null)" || | |
branch_name="(unnamed branch)" | |
branch_name=${branch_name##refs/heads/} | |
# Message | |
echo "${red}" | |
echo "╦ ╦┌─┐┬ ┌┬┐ ╔═╗┌┐┌ ╦ ╦┌─┐┬ ┬┌┐┌┌─┐ ╔╦╗┌─┐┌┐┌┬┬ | |
╠═╣│ ││ ││ ║ ║│││ ╚╦╝│ ││ │││││ ┬ ║║║├─┤│││││ | |
╩ ╩└─┘┴─┘─┴┘ ╚═╝┘└┘ ╩ └─┘└─┘┘└┘└─┘ ╩ ╩┴ ┴┘└┘oo" | |
echo "${default}"; | |
echo " You have to copy new variables defined in ${yellow}${bold}.env${default} from ${green}${bold}.env${default} just in cause if you are forgot! " | |
echo " Also Don't forgot about ${yellow}${bold}docker-compose.dist.yml${default} for putting changes from your local ${green}${bold}docker-compose.yml${default}!! " | |
echo " " | |
echo " ${red} " | |
echo " P.S: Don't be reckless! Always Deliver great quality product. " | |
echo " Improve yourself! Never Stop Working at yourself! " | |
echo " " | |
echo " " | |
echo "${default}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment