# # ~/.bashrc-color-ps1 -- use terminal colors in PS1 # # DESCRIPTION # This is an example on how you can set colors in your PROMPT. # Terminal colors and affects use a "magic string" of an ESC # character followed by an open bracket '['. In vi, you can insert # literals using CTRL-v followed by the keystroke. For the ESC # literal, the sequence is CTRL-v ESC. # # After the magic string, a two digit number or a list of two digit # numbers separated by semicolons (';') follows. It is terminated # with the letter 'm'. # # SYNTAX # # [01;31mBold red text[00m, returned to default color. # # DETAILS # Affect terminal codes: 00=default, 01=bold, 04=underscore, # 05=blink, 07=reverse, 08=concealed. # # Foreground color codes: 30=black 31=red 32=green 33=yellow 34=blue # 35=magenta 36=cyan 37=white # # Background color codes: 40=black 41=red 42=green 43=yellow 44=blue # 45=magenta 46=cyan 47=white # ############################################################################### # Is the role explicitly set in the system directory? if [ -f /etc/server-role ] ; then SERVER_ROLE=$(