Can value of environmental var appear in prompt?
Philip Yzarn de Louraille
yzarn at lhdsy1.chevron.com
Wed Jun 19 04:24:21 AEST 1991
In article <3406 at ria.ccs.uwo.ca> creider at csd.uwo.ca (Chet Creider) writes:
>How can one make the value of an environmental variable appear in a
>C-shell prompt? While using screen, I often become confused as to which
>window I'm in. Screen maintains an environmental variable WINDOW giving
>the number of the current window. Can this value be put into a prompt?
set prompt=`echo $WINDOW`
But why would you want to do this? It looks *ugly* :-)
--
Philip Yzarn de Louraille Internet: yzarn at chevron.com
Research Support Division Unix & Open Systems
Chevron Information & Technology Co. Tel: (213) 694-9232
P.O. Box 446, La Habra, CA 90633-0446 Fax: (213) 694-7709
More information about the Comp.unix.questions
mailing list