This will print a bashprompt similar to this:
(3s) pascal@dell-laptop (master) ~/dev/bashprompt $
where 3s
is the runtime of the last command and master
is the current git branch.
The displaycolor for the user and hostname can be adjusted here:
USER_COLOR=$BLUE
ROOT_COLOR=$RED
HOST_COLOR=$BLUE
Add this line at the end of your ~/.bashrc
:
source /path/to/bashprompt.sh