-
-
Save ri0day/6c1de6f3201f83399f0d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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