Skip to content

Latest commit

 

History

History
29 lines (23 loc) · 660 Bytes

README.md

File metadata and controls

29 lines (23 loc) · 660 Bytes

Bash - Prompt String One

Common Special Characters

\d - the current date
\e - escape character
\h - the hostname
\n - a newline
\t - current time 24-hour HH:MM:SS
\T - 12-hour HH:MM:SS
\@ - 12-hour HH:MM am/pm
\u - username of current user
\w - path to current working directory

Colors

\[ - start of non-printing sequence
\] - end of non-printing sequence

Black: \e[30m
Blue: \e[34m
Cyan: \e[36m
Green: \e[32m
Magenta: \e[35m
Red: \e[31m
White: \e[37m
Yellow: \e[33m

To reset the color, use \e[00m