I am attempting to use a simple shell script on a base Ubuntu 12.04 server install to set prompt colors for users system wide.
I would like to have Puppet place the file color.sh in /etc/profile.d/ -- with permission 744
but the file isn't being sourced by users at all. ~/.bashrc appears to override this.
if [[ ${EUID} == 0 ]] ; then
PS1="\\[\\033[01;31m\\]\\h\\[\\033[01;34m\\] \\W \\$\\[\\033[00m\\] "
else
PS1="\\[\\033[01;32m\\]\\u@\\h\\[\\033[01;34m\\] \\w \\$\\[\\033[00m\\] "
fi
I would prefer not to manipulate ~/.bashrc files with Puppet, but instead have this work globally with profile.d script.