From: Andrea Mahlberg <amahlberg () iwcc ! cc ! ia ! us>
To: tru64-unix-managers
Subject: Putting the current directory in the primary prompt string
Date: Tue, 18 Feb 1997 15:35:26 +0000 [thread overview]
Message-ID: <96078608810355.tru64-unix-managers.marc@archive.invalid> (raw)
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
reply other threads:[~1997-02-18 15:35 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox