lilalo

changeset 77:e56f21c44faf

Под root'ом приглашение красного цвета
author devi
date Mon Feb 13 19:28:51 2006 +0200 (2006-02-13)
parents 0da83215839a
children 147fb109c012
files l3bashrc
line diff
     1.1 --- a/l3bashrc	Mon Feb 13 19:01:19 2006 +0200
     1.2 +++ b/l3bashrc	Mon Feb 13 19:28:51 2006 +0200
     1.3 @@ -110,7 +110,9 @@
     1.4  _l3_init_prompt()
     1.5  {
     1.6      PS1='[\u@\h:\W]\$ '
     1.7 -    PS1='\[\033[0;32m\]'$PS1'\[\033[0m\]'
     1.8 +    [ $UID = 0 ] \
     1.9 +        && PS1='\[\033[0;31m\]'$PS1'\[\033[0m\]' \
    1.10 +        || PS1='\[\033[0;32m\]'$PS1'\[\033[0m\]' \
    1.11      export PS1
    1.12  }
    1.13