Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!unix.cis.pitt.edu!hpb.cis.pitt.edu!skeeve From: skeeve@hpb.cis.pitt.edu (John Huffman) Newsgroups: comp.unix.questions Subject: Re: Can value of environmental var appear in prompt? Message-ID: <141179@unix.cis.pitt.edu> Date: 18 Jun 91 15:02:27 GMT References: <3406@ria.ccs.uwo.ca> Sender: news@unix.cis.pitt.edu Distribution: comp.unix.questions, comp.sys.sun Organization: Univ. of Pittsburgh -- Panther Amateur Radio Club Lines: 13 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? Sure easy enough: set prompt=$WINDOW"->" Of course you'll probably want to add more to the prompt, but that's the idea. - John Huffman