Can value of environmental var appear in prompt?
John Huffman
skeeve at hpb.cis.pitt.edu
Wed Jun 19 01:02:27 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?
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
More information about the Comp.unix.questions
mailing list