From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078608810355.tru64-unix-managers.marc@archive.invalid> From: Andrea Mahlberg Date: Tue, 18 Feb 1997 15:35:26 +0000 To: tru64-unix-managers Subject: Putting the current directory in the primary prompt string X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078608810355 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