Subversion Repositories ALCASAR

Rev

Rev 247 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 247 Rev 630
Line 1... Line 1...
1
# $Id: bashrc 247 2010-09-13 16:54:46Z franck $
1
# $Id: bashrc 630 2011-06-10 22:23:56Z franck $
2
# /etc/bashrc
2
# /etc/bashrc
3
 
3
 
-
 
4
ORGANISME=""
-
 
5
 
4
# System wide functions and aliases
6
# System wide functions and aliases
5
# Environment stuff goes in /etc/profile
7
# Environment stuff goes in /etc/profile
6
 
8
 
7
# by default, we want this to get set.
9
# by default, we want this to get set.
8
# Even for non-interactive, non-login shells.
10
# Even for non-interactive, non-login shells.
Line 23... Line 25...
23
    esac
25
    esac
24
 
26
 
25
#    [ "$PS1" = "\\s-\\v\\\$ " ] && PS1="[\u@\h \W]\\$ "	# default
27
#    [ "$PS1" = "\\s-\\v\\\$ " ] && PS1="[\u@\h \W]\\$ "	# default
26
# met un peu de couleur sur le compte 'root'
28
# met un peu de couleur sur le compte 'root'
27
    if [ `id -un` = root ]; then
29
    if [ `id -un` = root ]; then
28
        PS1='\[\033[1;31m\]\h:\w\$\[\033[0m\] '
30
        PS1='\[\033[1;31m\]\h-$ORGANISME:\w\$\[\033[0m\] '
29
        else
31
        else
30
        PS1='\[\033[1;30m\]\h:\w\$\[\033[0m\] '
32
        PS1='\[\033[1;30m\]\h-$ORGANISME:\w\$\[\033[0m\] '
31
    fi
33
    fi
32
				
34
				
33
    
35
    
34
    if [ -z "$loginsh" ]; then # We're not a login shell
36
    if [ -z "$loginsh" ]; then # We're not a login shell
35
	# Not all scripts in profile.d are compatible with other shells
37
	# Not all scripts in profile.d are compatible with other shells