umask 022 # if running bash if [ -n "$BASH_VERSION" ]; then # include .bashrc if it exists if [ -f "$HOME/.bashrc" ]; then . "$HOME/.bashrc" fi fi # set PATH so it includes user's private bin if it exists if [ -d "$HOME/bin" ] ; then PATH="$HOME/bin:$PATH" fi EDITOR=nano export EDITOR JAVA_HOME=$HOME/software/java export JAVA_HOME PATH=$JAVA_HOME/bin:/usr/local/bin:/usr/bin:/usr/ccs/bin:$PATH export PATH RUGCMS_CLASSPATH=\ $HOME/software/tomcat/lib/*:\ $HOME/servers/tomcat-common/lib/*:\ $HOME/servers/ucms-common/lib/ucms/*:\ $HOME/servers/ucms-common/lib/xml/*:\ $HOME/servers/ucms-common/lib/jackrabbit/*:\ $HOME/servers/ucms-common/lib/apache/*:\ $HOME/servers/ucms-common/lib/google/*:\ $HOME/servers/ucms-common/lib/* export RUGCMS_CLASSPATH source $HOME/scripts/setClusterAndNode.sh if [[ $CLUSTER == 'test' ]]; then PS1=$'\\[\\e[32;1m\\]\\u@\\h (\\w) : \\[\\e[0m\\]' elif [[ $CLUSTER == 'acceptation' ]]; then PS1=$'\\[\\e[33;1m\\]\\u@\\h (\\w) : \\[\\e[0m\\]' elif [[ $CLUSTER == 'production' ]]; then PS1=$'\\[\\e[31m\\]\\u@\\h (\\w) : \\[\\e[0m\\]' else PS1=$'\\[\\e[35;1m\\]\\u@\\h (\\w) : \\[\\e[0m\\]' fi export PS1