/alcasar.sh |
---|
1262,6 → 1262,7 |
# Coloration des prompts |
[ -e /etc/bashrc.default ] || cp /etc/bashrc /etc/bashrc.default |
cp -f $DIR_CONF/bashrc /etc/. ; chmod 644 /etc/bashrc ; chown root:root /etc/bashrc |
$SED "s?^ORGANISME.*?ORGANISME=$ORGANISME?g" /etc/bashrc |
# Droits d'exécution pour utilisateur apache et sysadmin |
[ -e /etc/sudoers.default ] || cp /etc/sudoers /etc/sudoers.default |
cp -f $DIR_CONF/sudoers /etc/. ; chmod 440 /etc/sudoers ; chown root:root /etc/sudoers |
/conf/bashrc |
---|
1,6 → 1,8 |
# $Id$ |
# /etc/bashrc |
ORGANISME="" |
# System wide functions and aliases |
# Environment stuff goes in /etc/profile |
25,9 → 27,9 |
# [ "$PS1" = "\\s-\\v\\\$ " ] && PS1="[\u@\h \W]\\$ " # default |
# met un peu de couleur sur le compte 'root' |
if [ `id -un` = root ]; then |
PS1='\[\033[1;31m\]\h:\w\$\[\033[0m\] ' |
PS1='\[\033[1;31m\]\h-$ORGANISME:\w\$\[\033[0m\] ' |
else |
PS1='\[\033[1;30m\]\h:\w\$\[\033[0m\] ' |
PS1='\[\033[1;30m\]\h-$ORGANISME:\w\$\[\033[0m\] ' |
fi |