VIO Konfiguration

Usefull settings

customize your environment when running oem_setup_env

Even when customers change the .profile from padmin user, those changes don't carry over when running the oem_setup_env command. Whenever we run the oem_setup_env command, we had to run manually run /.profile too.
A more elegant solution is to use a .kshrc file. Create a /home/padmin/.kshrc file.
Add whatever you want inside
Example:
OEMLOGNAME=`whoami`
if [ $OEMLOGNAME = "root" ]
then
      PS1='$OEMLOGNAME@$HOST:$PWD# '
else
      PS1='$OEMLOGNAME@$HOST:$PWD$ '
fi

set -o vi
alias ll="ls -la"

Then add at the end of the /home/padmin/.profile:
export ENV=/home/padmin/.kshrc




Das Originaldokument ist zu finden unter http://ccf-consulting.de/tiki-5.0/tiki-index.php?page=CCF_AIX_VIO