On Wed, 28 Nov 2012 09:05:26 +0100, Hunkeler Peter (KIUP 4) <[email protected]> wrote:
>>a) the alias's in my .profile get lost after doing a "su" >>b) I like to see a different command prompt to remind me > >Below is my "ENV" script, which is run whenever a s(sub)shell starts. It >tests for the current uid and sets the shell prompt variable PS1 >accordingly. It also set my aliases. >Note that variables HOSTNAME, HOSTREL, MYLOCALE and MYCODEPAGE are set >in my .profile. > <snip> What may not be clear from Peter's post is that you have to specify the name of that script in the ENV environment variable. So in my .profile I have this (in addition to some other exports - which should remain in .profile and not in the "ENV" script): # set up my environment export ENV=$HOME/@myenv Regards, Mark -- Mark Zelden - Zelden Consulting Services - z/OS, OS/390 and MVS mailto:[email protected] Mark's MVS Utilities: http://www.mzelden.com/mvsutil.html Systems Programming expert at http://expertanswercenter.techtarget.com/ ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
