Put the following commands into your Git Bash Terminal
$ cd /etc/profile.d
$ explorer .
Put the git-prompt.sh
file into the folder and replace
- https://blog.devgenius.io/how-to-customize-the-git-bash-shell-prompt-336f6aefcf3f
- https://stackoverflow.com/questions/4842424/list-of-ansi-color-escape-sequences
- https://stackoverflow.com/questions/4133904/ps1-line-with-git-current-branch-and-colors
- https://www.lihaoyi.com/post/BuildyourownCommandLinewithANSIescapecodes.html
- https://gist.github.com/bamanzi/5875262
- https://www.cyberciti.biz/faq/unix-linux-bash-script-check-if-variable-is-empty/
- The prompt is a copy of the terminal i saw in this video youtube.com/watch?v=MxfxiR8TVNU