Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Included pictures as OP does not have privileges to do so (yet).
Source Link
Runium
  • 30.1k
  • 5
  • 57
  • 77

I need to be able to set my CentOS 6.4 bash prompt color to yellow.

I've managed to find where to set this (.bashrc) and the ANSI color for yellow (\e[0;33m).

I've setup my prompt as follows: PS1="[\033[33m][\u@\h \W]$ [$Color_Off]"

This all works fine when I ssh into our a system BUT when I use the local console it comes out as BROWN.

How can I modify bashrc so that its yellow regardless of weather I use SSH or the local console?

Please don't suggest I use a different color - for various reasons it would be a significant amount of effort to use a different color.

See the following links for what I mean:

colors in putty

local colors

http://picpaste.com/putty_coloring-9clungcS.jpg

http://picpaste.com/local_console_color-hApaEX8U.jpg

I need to be able to set my CentOS 6.4 bash prompt color to yellow.

I've managed to find where to set this (.bashrc) and the ANSI color for yellow (\e[0;33m).

I've setup my prompt as follows: PS1="[\033[33m][\u@\h \W]$ [$Color_Off]"

This all works fine when I ssh into our a system BUT when I use the local console it comes out as BROWN.

How can I modify bashrc so that its yellow regardless of weather I use SSH or the local console?

Please don't suggest I use a different color - for various reasons it would be a significant amount of effort to use a different color.

See the following links for what I mean:

http://picpaste.com/putty_coloring-9clungcS.jpg

http://picpaste.com/local_console_color-hApaEX8U.jpg

I need to be able to set my CentOS 6.4 bash prompt color to yellow.

I've managed to find where to set this (.bashrc) and the ANSI color for yellow (\e[0;33m).

I've setup my prompt as follows: PS1="[\033[33m][\u@\h \W]$ [$Color_Off]"

This all works fine when I ssh into our a system BUT when I use the local console it comes out as BROWN.

How can I modify bashrc so that its yellow regardless of weather I use SSH or the local console?

Please don't suggest I use a different color - for various reasons it would be a significant amount of effort to use a different color.

See the following for what I mean:

colors in putty

local colors

http://picpaste.com/putty_coloring-9clungcS.jpg

http://picpaste.com/local_console_color-hApaEX8U.jpg

Post Migrated Here from serverfault.com (revisions)
Source Link
Brad
  • 203
  • 1
  • 3
  • 11

Colorize Bash Console Color

I need to be able to set my CentOS 6.4 bash prompt color to yellow.

I've managed to find where to set this (.bashrc) and the ANSI color for yellow (\e[0;33m).

I've setup my prompt as follows: PS1="[\033[33m][\u@\h \W]$ [$Color_Off]"

This all works fine when I ssh into our a system BUT when I use the local console it comes out as BROWN.

How can I modify bashrc so that its yellow regardless of weather I use SSH or the local console?

Please don't suggest I use a different color - for various reasons it would be a significant amount of effort to use a different color.

See the following links for what I mean:

http://picpaste.com/putty_coloring-9clungcS.jpg

http://picpaste.com/local_console_color-hApaEX8U.jpg