Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!olivea!uunet!lhdsy1!yzarn From: yzarn@lhdsy1.chevron.com (Philip Yzarn de Louraille) Newsgroups: comp.unix.questions Subject: Re: Can value of environmental var appear in prompt? Message-ID: <975@lhdsy1.chevron.com> Date: 18 Jun 91 18:24:21 GMT References: <3406@ria.ccs.uwo.ca> Distribution: comp.unix.questions, comp.sys.sun Organization: Chevron Oil Field Research, La Habra, CA. Lines: 15 In article <3406@ria.ccs.uwo.ca> creider@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@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