Is it me or is it sudo?

Reindl Harald h.reindl at thelounge.net
Thu Mar 29 13:17:26 UTC 2012



Am 29.03.2012 14:53, schrieb Mark Haney:
> On 03/28/2012 04:27 PM, Reindl Harald wrote:
> 
>> the promt in linux supports colors since long ago
>> which is smarter than guess by error messages that
>> it was a root command happily with not enough
>> permissions
>>
>> /root/.basrhc (red prompt):
>> PS1="\[\033[1;31m\][\u@\h:\w]$\[\033[0m\] "
>>
>> ~/.bashrc (green prompt)
>> PS1="\[\033[1;32m\][\u@\h:\w]$\[\033[0m\] "
>> ______________________________
>>
>> i use the follwoing schema since many years
>>
>> RED:       root on production servers
>> ORANGE:    root on my machines
>> YELOW:     root on backup.machines
>> GREEN:     my user
>> LIGHTBLUE: buildusers
>> DARKBLUE:  vm hosts
>>
>> no, i have no good documentation, i googled around
>> for colors i searched :-)
> 
> I'm aware of BASH's use of colors, but, I'm not always at a console that displays colors.  (I've not found an
> Android app that will display them on my Galaxy Tab for instance.)

ConnectBot can it on HTC Hero and HTC Desire
i would wonder if not on Galaxy


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://lists.fedoraproject.org/pipermail/users/attachments/20120329/58f62f2b/attachment.sig>


More information about the users mailing list