ADSM-L

Re: AIX question: how to display "pwd" at root prompt??

2001-01-24 14:57:48
Subject: Re: AIX question: how to display "pwd" at root prompt??
From: "Ford, Phillip" <Phillip.Ford AT SPCORP DOT COM>
Date: Wed, 24 Jan 2001 14:59:10 -0500
This is what I use:

PS1=$(uname -a):${LOGNAME}':${PWD#$HOME/}:!> '
export PS1

This looks like the following:

node_name:root:/tmp:300

The 300 on the end is the number in .sh_history that the next command will
get.


Hope this helps


--
Phillip Ford
Phillip Ford
Senior Software Specialist
Corporate Computer Center
Schering-Plough Corp.
(901) 320-4462
(901) 320-4856 FAX
phillip.ford AT spcorp DOT com