This looked very promising but I get an error when I try it on line 3 Please advise
Thank you -------------------------------------------------------------------------- Lionel B. Dyck (Contractor) Mainframe Systems Programmer Enterprise Infrastructure Support (Station 200) (005OP6.3.10) VA OI&T Service Delivery & Engineering -----Original Message----- From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf Of Eosze, Jonathan L. Sent: Monday, April 18, 2016 12:02 PM To: [email protected] Subject: [EXTERNAL] Re: Changing OMVS prompt to indicate SuperUser state? export HOST="$(hostname -s)" # Change what the prompt looks like from '$' or '#' to be similar to 'myhost.abc.com:/u/user123 $ ' if [[ "${PS1}" == '# ' || "${PS1}" == '$ ' ]]; then export PSCH="${PS1}" typeset PS1='$HOST:${PWD} ${PSCH}' # typeset PS1="$HOST:\${PWD#$HOME/} $PSCH" fi Jonathan Eosze -----Original Message----- From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf Of Dyck, Lionel B. (TRA) Sent: Monday, April 18, 2016 11:38 AM To: [email protected] Subject: EXTERNAL: Changing OMVS prompt to indicate SuperUser state? Does anyone have an example of a .profile in which the prompt is changed so that it is different when in normal user state and in superuser state? Thanks in advance -------------------------------------------------------------------------- Lionel B. Dyck (Contractor) Mainframe Systems Programmer Enterprise Infrastructure Support (Station 200) (005OP6.3.10) VA OI&T Service Delivery & Engineering ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
