Created
February 23, 2021 03:52
-
-
Save Chen-tao/be077b6c05bb7ce913c346b211ef7867 to your computer and use it in GitHub Desktop.
little alias with colorful msg in pull op.
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
#!/usr/bin/env bash | |
# define echo terminal style | |
# color: 0~6 --> black, red, green, yellow, blue, purple, cyan, grey | |
export COLOR_END=" \033[0m" # default style(black background, white foreground) | |
export YELLOW="\033[33m " # yellow | |
export LIGHTBLUE="\033[36m " # light bule | |
# echo -e "${YELLOW}echo command terminal style example${COLOR_END}" | |
echo -e "${YELLOW} git checkout master; git pull --rebase ${COLOR_END}" | |
git checkout master; git pull --rebase | |
#echo -e "${YELLOW} git checkout chentao ${COLOR_END}" | |
#git checkout chentao | |
# | |
#echo -e "${YELLOW} git pull origin master --rebase ${COLOR_END}" | |
#git pull origin master | |
echo -e "${LIGHTBLUE} Go coding ! ${COLOR_END}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment