Sample Header Ad - 728x90

What color codes can I use in my Bash PS1 prompt?

221 votes
9 answers
313926 views
I used several colors in my bash PS1 prompt such as: \033]01;31\] # pink \033]00m\] # white \033]01;36\] # bold green \033]02;36\] # green \033]01;34\] # blue \033]01;33\] # bold yellow Where can I find a list of the color codes I can use? I looked at https://unix.stackexchange.com/questions/74024/colorize-bash-console-color but it didn't answer my question about a list of the actual codes. It would be nice if there was a more readable form also. See also: [How can I get my PS1 prompt to show time, user, host, directories, and Git branch](https://unix.stackexchange.com/a/127800/10043)
Asked by Michael Durrant (43563 rep)
Apr 12, 2014, 03:38 PM
Last activity: Oct 15, 2024, 03:51 PM