Color Bsh at Color

Color Bsh. Red=`tput setaf 1` green=`tput setaf 2` reset=`tput sgr0` echo ${red}red text ${green}green text${reset} Echo this is red text use ;

Bash Shell Change Shell Prompt 草脏脏的博客 ViVi Blog
Bash Shell Change Shell Prompt 草脏脏的博客 ViVi Blog from cwgoover.github.io

Now let’s see how we can change the color of the bash prompt: Breaking that down, here’s what every color tag will look like. Another option is to use shell variables:

Bash Shell Change Shell Prompt 草脏脏的博客 ViVi Blog

How to change bash prompt color. This color combination was created by user vanessa. Press up or down to toggle rgb/hexadecimal values; Use ansi escape sequences to set text properties like foreground and background colors.