Last active
February 12, 2021 01:20
-
-
Save everaldomatias/308a2008feee12ecfec2c6947e26311b to your computer and use it in GitHub Desktop.
Adiciona branch do git no prompt
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
#define GIT_COLOR_NORMAL "" | |
#define GIT_COLOR_RESET "\033[m" | |
#define GIT_COLOR_BOLD "\033[1m" | |
#define GIT_COLOR_RED "\033[31m" | |
#define GIT_COLOR_GREEN "\033[32m" | |
#define GIT_COLOR_YELLOW "\033[33m" | |
#define GIT_COLOR_BLUE "\033[34m" | |
#define GIT_COLOR_MAGENTA "\033[35m" | |
#define GIT_COLOR_CYAN "\033[36m" | |
#define GIT_COLOR_BOLD_RED "\033[1;31m" | |
#define GIT_COLOR_BOLD_GREEN "\033[1;32m" | |
#define GIT_COLOR_BOLD_YELLOW "\033[1;33m" | |
#define GIT_COLOR_BOLD_BLUE "\033[1;34m" | |
#define GIT_COLOR_BOLD_MAGENTA "\033[1;35m" | |
#define GIT_COLOR_BOLD_CYAN "\033[1;36m" | |
#define GIT_COLOR_BG_RED "\033[41m" | |
#define GIT_COLOR_BG_GREEN "\033[42m" | |
#define GIT_COLOR_BG_YELLOW "\033[43m" | |
#define GIT_COLOR_BG_BLUE "\033[44m" | |
#define GIT_COLOR_BG_MAGENTA "\033[45m" | |
#define GIT_COLOR_BG_CYAN "\033[46m" | |
\[\033[41m\]`git branch 2>/dev/null | grep \* | head -1 | sed "s/\* //g" | awk "{print\"[\"\\\$1 \"]\"}"`\[\033[m\] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment