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:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Dyck, Lionel B. (TRA) Sent: Monday, April 18, 2016 11:38 AM To: IBM-MAIN@LISTSERV.UA.EDU 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 lists...@listserv.ua.edu with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN