[comp.os.vms] WHERE AM I

tenaglia@astroatc.UUCP (Chris Tenaglia) (02/12/88)

There has been a lot of discussion about having the prompt contain
the spec of the current default. Obviously having it in the prompt
reduces the required keystrokes. But it eats up a lot of your com-
mand line.  Some don't change if you do a set default. Others that
do require  a DCL program  which gets a bit involved.  I'd like to
offer my suggestion.  In your login.com add the following commands

LITDEF :== "DEFAULT"
PWD    :== "WRITE SYS$OUTPUT F$ENV(LITDEF)"
DEFINE/KEY PF4 PWD/TERMINATE

I chose PF4 on my vt100, but you may use whatever key works for you.
In the above example  I just press PF4 and bingo ! I see my default.


Chris Tenaglia
Astronautics Corporation of America
4115 N. Teutonia Avenue
Milwaukee, Wi 53209 USA
(414) 447-8200 X-450