Clone the repo to your home folder:
cd ~
git clone https://github.com/HypeMC/bash-prompt.git .bash_prompt
Add the following to your .bashrc
:
. ~/.bash_prompt/prompt.sh
PROMPT_COMMAND="__prompt $color_prompt"
With the hostname displayed:
. ~/.bash_prompt/prompt.sh
PROMPT_COMMAND="__prompt $color_prompt yes"
When the user is root:
When the last exit status iz not zero: