The Go Blog

git-prompt-bash

bantana
11 July 2015

bash-git-prompt/prompt-colors.sh

GIT_PROMPT_COMMAND_OK="ubuntu ${Green}✔ " # displays as ✔
GIT_PROMPT_COMMAND_FAIL="ubuntu ${Red}✘-_LAST_COMMAND_STATE_ " # displays as ✘-1 for exit code 1

Related articles