Skip to content

Instantly share code, notes, and snippets.

@oelmekki
Created May 21, 2016 11:00
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oelmekki/3af25113a310f9ecea26335c236c9f1c to your computer and use it in GitHub Desktop.
Save oelmekki/3af25113a310f9ecea26335c236c9f1c to your computer and use it in GitHub Desktop.
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