Colors.....

Jose I. Cabrera cabrera@wrc.xerox.com
Thu Sep 10 02:15:00 GMT 1998


thank you very much....


Alex Rezinsky wrote:
> 
>     Hi,
> 
> This is fragment from my .bashrc file where I set colors for each prompt
> depending on exit status of the previous command.
> Hope this will help.
> 
> Alex Rezinsky
> Motorola Semiconductor Israel
> alexr@msil.sps.mot.com
> 
> -------------------------------
> 
> # Colors
> export fg_black=""
> export fg_red=""
> export fg_green=""
> export fg_yellow=""
> export fg_blue=""
> export fg_magenta=""
> export fg_cyan=""
> export fg_white=""
> export bg_black=""
> export bg_red=""
> export bg_green=""
> export bg_yellow=""
> export bg_blue=""
> export bg_magenta=""
> export bg_cyan=""
> export bg_white=""
> export normal=""
> 
>         set_promtp_colors()
>         {
>             if (( $? ))
>             then
>                 prompt_beg=${bg_red}${fg_yellow}
>                 prompt_end=${normal}
>             else
>                 prompt_beg=${bg_blue}${fg_yellow}
>                 prompt_end=${normal}
>             fi
>         }
> 
> PROMPT_COMMAND=set_promtp_colors
> PS1=' \[${prompt_beg}\]<\!>\[${prompt_end}\] '
> 
> Jose I. Cabrera wrote:
> 
> > Does anyone knows how to put colors on the bash screen?  I have a nice
> > utility called NTSh and it has great colors.  Anyone?
> >
> > thanks.
> > jose
> > -
> > For help on using this list (especially unsubscribing), send a message to
> > "gnu-win32-request@cygnus.com" with one line of text: "help".
> >

-- 

Hasta pronto.....!!!
Y como dice mi pa'i, "Mecedora!!"

(((((((((((((((((((((((((((((((((())))))))))))))))))))))))))))))))
!!                 jose.....El Dominicano Americano Ausente.    !!
!!    These are my opinions and not my employer's.              !!
(((((((((((((((((((((((((((((((((())))))))))))))))))))))))))))))))
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".



More information about the Cygwin mailing list