Skip to content

A bash profile extension to color your user prompt depending on if you are root or not

License

Notifications You must be signed in to change notification settings

solbu/colorprompt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

colorprompt (92user-color.sh] is a bash profile extension 
to color your user prompt appropriately.
It will make regular logins green and root logins red.

92user-color-clock.sh will also put the clock timestamp at the front of the prompt.
It will show the time when the previous command was completed. Usefull for commands that take
some time to complete, and give you an idea of how long ago you did something in the terminal.
Not everyone want the time in their prompt, so I put this in a separate script.

Put one of these scripts in /etc/profile.d/ and it should work.

About

A bash profile extension to color your user prompt depending on if you are root or not

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages