#! /Bin/bash # This shoshould go in your ~ /. Bashrc file # define ANSI color sequencesnormal = "\ [\ 033 [0m \]" White = "\ [\ 033 [0; 37; 40m \] "Magenta =" \ [\ 033 [0; 35; 40m \] "brightblue =" \ [\ 033 [1; 34; 40m \] "brightwhite =" \ [\ 033 [1; 37; 40m \] "brightmagenta =" \ [\ 033 [1; 35; 40m \] "# Find out if we are rootif [$ UID-EQ 0]; then # The # character serves as an extra reminder that I am root sym = '# 'else sym ='-'fi # define the actual prompt # This is split up for easier READI Ng within this bookp1 = "$ magenta $ sym $ brightmagenta-$ brightblue ($ white \ U $ magenta @ $ White" p2 = "\ h $ brightblue) $ brightmagenta-$ brightblue ($ brightwhite \ W $ brightblue "P3 = ") $ brightmagenta-$ magenta $ sym $ normal \ N $ magenta $ sym $ brightmagenta-"P4 =" $ brightblue ($ brightwhite \ $? $ Brightblue) $ magenta> $ normal "PS1 =" $ P1 $ P2 $ P3 $ P4"