Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
function prompt_extensions {
if [[ "$?" != "0" ]]; then
_prompt_status="$(echo -en '\033[41m\033[33m \033[00m')"
fi
echo -e "\n"
echo -n $_prompt_status
unset _prompt_status
}
PROMPT_COMMAND="prompt_extensions"
PS1="\u@\H:\w \$(__git_ps1 \"(%s)\")\n\[\033[1;33m\]$\[\033[00m\] "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment