tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* Putting the current directory in the primary prompt string
@ 1997-02-18 15:35 Andrea Mahlberg
  0 siblings, 0 replies; only message in thread
From: Andrea Mahlberg @ 1997-02-18 15:35 UTC (permalink / raw)
  To: tru64-unix-managers

We recently converted from an Ultrix machine to an Alpha machine.  On
Ultrix, I put this command in everyone's profiles so that it would show
their prompt would show their login id and their current directory: 
PS1="\($(whoami)\$$\) \${PWD##*/}->".  For example, (andrea 6813)
spool->.  I'm trying to do the same thing on the Alpha, but can't get it
to work.  I can get it to display the logid id using (`pwd`), but can't
get the current directory.  I'm using kornshell on both systems.  Does
anyone know how to do this on an Alpha machine? 

Thanks for your help

Andrea Mahlberg

********************

Andrea Mahlberg                                
System Administrator 
Iowa Western Community College
2700 College Rd, Box 4-C
Council Bluffs, IA 51502
 
amahlberg@iwcc.cc.ia.us  
Voice  (712) 325-3222       FAX    (712) 325-3718

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1997-02-18 15:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-02-18 15:35 Putting the current directory in the primary prompt string Andrea Mahlberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox