Path: utzoo!mnetor!uunet!lll-winken!lll-lcc!lll-tis!ames!mailrus!tut.cis.ohio-state.edu!ut-sally!utah-cs!utah-gr!uplherc!sp7040!obie!wsccs!dave From: dave@wsccs.UUCP (VAX Headroom @ The End of the Galaxy) Newsgroups: comp.os.vms Subject: Re: getting current dir in dcl prompt Message-ID: <161@wsccs.UUCP> Date: 17 Feb 88 23:00:55 GMT References: <8802080945.AA23905@ucbvax.Berkeley.EDU> Lines: 30 Summary: Here is what we did and it works We put the following in sys$manager:cd.com $ SET DEFAULT 'P1 $ SET PROMPT="''F$DIRECTORY()'> " $ WRITE SYS$OUTPUT "''F$ENVIRONMENT("DEFAULT")'" $ EXIT Then we defined cd in sys$manager:sylogin.com like so,: cd:==@sys$manager:cd Then the users who wanted their prompt changed just typed cd newdirectory-specification. Note: This takes no time whatsoever (on our microvax) since set default, set prompt, and write are all built into dcl and do not require an image load. I don't happen to use this and its ancient on our system; I have some ideas to IMPROVE it greatly that I will get around to sometime. +-----------------------------------------------------------------------------+ | | Dave E Martin | DISCLAIMER: Been Cancelled | | /\ | "...between the streets of | $ opinion/mine/noUinTech | | / \ . /\ | Dallas, and the beaches of |----------------------------| | / \/ \/\/ \ | Miami ... THIS was Max | ...!ihnp4!utah-cs!utah-gr! | | / U i n T e c h \ | Headroom's finest hour." | uplherc!sp7040!obie! | | | --Max Headroom | wsccs!net23.dnet!dave | +-----------------------------------------------------------------------------+