sophuwu.site > bashprompt
Generator for a rainbow bash prompt that will color based on ip and user
Clone this repository git clone https://sophuwu.site/bashprompt

Rainbow Bash Prompt

html estimate output:

|0 17 :3 project bashprompt $ 
 0 18 ;> project bashprompt $ cd build/
 0 19 :> bashprompt build $ false
 1 20 :) bashprompt build $ [[ "str" == "str" ]]
 0 21 ;P bashprompt build $ [[ "str" == "strs" ]]
 1 22 ;> bashprompt build $

Installation


make
sudo install ./build/bashprompt /usr/local/bin/bashprompt
/usr/local/bin/bashprompt help

Ensure that the file is executable and that you use an absolute path to the file. Copy the output to your .bashrc for automatic start up. DO NOT USE .bash_profile or .profile.

Options:

Environment variables can be set to customize the prompt.
IPCOLOR=alt

IP address will be colored with an alternate color palette.

IPCOLOR=none

IP address and username will not be printed.