Skip to content

Instantly share code, notes, and snippets.

@ri0day
Forked from gschueler/.bash_profile
Last active August 29, 2015 14:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ri0day/6c1de6f3201f83399f0d to your computer and use it in GitHub Desktop.
Save ri0day/6c1de6f3201f83399f0d to your computer and use it in GitHub Desktop.
function prompt_func() {
previous_return_value=$?;
prompt="\h:\W \u"
if test $previous_return_value -eq 0
then
PS1="${prompt}🍺 "
else
PS1="${prompt}💩 "
fi
}
PROMPT_COMMAND=prompt_func
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment