Skip to content

Latest commit

 

History

History
21 lines (17 loc) · 631 Bytes

README.md

File metadata and controls

21 lines (17 loc) · 631 Bytes

bashprompt

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

Installation:

Add this line at the end of your ~/.bashrc:

source /path/to/bashprompt.sh