* Changing the '$' prompt to [default dir] similar to MSDOS $P$G
@ 1991-09-05 17:28 U29970
1991-09-06 2:30 ` Yoda Junior
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: U29970 @ 1991-09-05 17:28 UTC (permalink / raw)
Could someone please tell me how to change the '$' prompt to another prompt
displays the current default directory. I am using VMS 5.3. Thank you.
I'm looking for something like MS-DOS "SET PROMPT $P$G>"
Neil Bhattacharyya
u29970@UICVM.BITNET
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Changing the '$' prompt to [default dir] similar to MSDOS $P$G
1991-09-05 17:28 Changing the '$' prompt to [default dir] similar to MSDOS $P$G U29970
@ 1991-09-06 2:30 ` Yoda Junior
1991-09-06 10:48 ` havemann_l
1991-09-09 21:38 ` Changing the '$' prompt to [default dir] similar to MSDOS $P$G Michael Vilain
2 siblings, 0 replies; 5+ messages in thread
From: Yoda Junior @ 1991-09-06 2:30 UTC (permalink / raw)
In article <91248.122820U29970@uicvm.uic.edu> U29970@uicvm.uic.edu writes:
>Could someone please tell me how to change the '$' prompt to another prompt
>displays the current default directory. I am using VMS 5.3. Thank you.
>I'm looking for something like MS-DOS "SET PROMPT $P$G>"
>
>Neil Bhattacharyya
>u29970@UICVM.BITNET
Use the lexical f$directory. Help will give you more specific info on it, but
it goes basically something like
$ temp = f$directory()
$ set prompt = 'temp'
I just ^z ed and checked and that works. That may only set it once. I don't
know how to get it to change it as your directory changes.
Steve "Yoda Junior" Mansfield
Mansfiel@gmuvax2.gmu.edu
Mansfield@gmuvax.gmu.edu
-------------------------------------------------------------------------------
"Strange how laughter looks like crying with no sound,
raindrops taste like tears without the pain."
- Queensryche
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Changing the '$' prompt to [default dir] similar to MSDOS $P$G
1991-09-05 17:28 Changing the '$' prompt to [default dir] similar to MSDOS $P$G U29970
1991-09-06 2:30 ` Yoda Junior
@ 1991-09-06 10:48 ` havemann_l
1991-09-06 11:10 ` Changing the '$' prompt havemann_l
1991-09-09 21:38 ` Changing the '$' prompt to [default dir] similar to MSDOS $P$G Michael Vilain
2 siblings, 1 reply; 5+ messages in thread
From: havemann_l @ 1991-09-06 10:48 UTC (permalink / raw)
In article <91248.122820U29970@uicvm.uic.edu>, U29970@uicvm.uic.edu writes:
> Could someone please tell me how to change the '$' prompt to another prompt
> displays the current default directory. I am using VMS 5.3. Thank you.
> I'm looking for something like MS-DOS "SET PROMPT $P$G>"
>
> Neil Bhattacharyya
> u29970@UICVM.BITNET
$ foo :== 'f$getsyi("NODENAME")
$ SET PROMPT="''foo'::yername>" (or whatever you want)
(Thanks Terry - he showed me this one 8-)
Lee Havemann, Sys_op HSH Associates (201) 838-3330
Havemann_l@spcvxa.spc.edu - Havemann_l@spcvxa.bitnet
"Any opinions expressed are not necessarily those of anyone else,
including myself."
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Changing the '$' prompt
1991-09-06 10:48 ` havemann_l
@ 1991-09-06 11:10 ` havemann_l
0 siblings, 0 replies; 5+ messages in thread
From: havemann_l @ 1991-09-06 11:10 UTC (permalink / raw)
In article <1991Sep6.104837.1832@spcvxb.spc.edu>, havemann_l@spcvxb.spc.edu writes:
> In article <91248.122820U29970@uicvm.uic.edu>, U29970@uicvm.uic.edu writes:
>> Could someone please tell me how to change the '$' prompt to another prompt
>> displays the current default directory. I am using VMS 5.3. Thank you.
>> I'm looking for something like MS-DOS "SET PROMPT $P$G>"
>>
>> Neil Bhattacharyya
>> u29970@UICVM.BITNET
>
> $ foo :== 'f$getsyi("NODENAME")
^^^^^^^^^^^^^^^^^^^^^
This is the hostname prompt
> $ SET PROMPT="''foo'::yername>" (or whatever you want)
$ foo :== 'f$environment("default")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
$ SET PROMPT="''foo'::Yername>" (or whatever you want to add)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Woops - I forgot this part - thats the one that shows the default (current)
directory
Lee Havemann, Sys_op HSH Associates (201) 838-3330
Havemann_l@spcvxa.spc.edu - Havemann_l@spcvxa.bitnet
"Any opinions expressed are not necessarily those of anyone else,
including myself."
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Changing the '$' prompt to [default dir] similar to MSDOS $P$G
1991-09-05 17:28 Changing the '$' prompt to [default dir] similar to MSDOS $P$G U29970
1991-09-06 2:30 ` Yoda Junior
1991-09-06 10:48 ` havemann_l
@ 1991-09-09 21:38 ` Michael Vilain
2 siblings, 0 replies; 5+ messages in thread
From: Michael Vilain @ 1991-09-09 21:38 UTC (permalink / raw)
U29970@uicvm.uic.edu writes:
>Could someone please tell me how to change the '$' prompt to another prompt
>displays the current default directory. I am using VMS 5.3. Thank you.
>I'm looking for something like MS-DOS "SET PROMPT $P$G>"
As with Unix systems, you can hack a DCL symbol (e.g. SD or CD) which will
set your prompt to your current default. A simple matter of programming...
See the lexical function f$environment("DEFAULT")
/MeV/
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~1991-09-09 21:38 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1991-09-05 17:28 Changing the '$' prompt to [default dir] similar to MSDOS $P$G U29970
1991-09-06 2:30 ` Yoda Junior
1991-09-06 10:48 ` havemann_l
1991-09-06 11:10 ` Changing the '$' prompt havemann_l
1991-09-09 21:38 ` Changing the '$' prompt to [default dir] similar to MSDOS $P$G Michael Vilain
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox