Has been given by Charles in the FAQ/doc section. In /root/.profile, put the following code:
cdp() { cd $@ export PS1=`echo -n -e "\n$HOSTNAME: -$USER->$PWD"` } alias cd=cdp Thus for every cd, the new directory is also shown in the prompt. I guess this is what you are looking for given that except for PWD, everything else is static for the session. Mohan -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Jeff Newmiller Sent: Wednesday, December 11, 2002 6:01 AM To: Brian Henning Cc: leaf Subject: Re: [leaf-user] prompt On Tue, 10 Dec 2002, Brian Henning wrote: > hello, > > could someone tell me how to change the prompt in dachstein leaf? > i tried editing /etc/profile: > > export PS1=`echo -n -e "\n$HOSTNAME: $USER-> "` > > but that didn't do the trick. Do what trick? Please be more specific as to what you did, and what you expected to be the result. Did you log out and log back in again? That statement is only executed during login. ------------------------------------------------------------------------ --- Jeff Newmiller The ..... ..... Go Live... DCN:<[EMAIL PROTECTED]> Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer (Solar/Batteries O.O#. #.O#. with /Software/Embedded Controllers) .OO#. .OO#. rocks...2k ------------------------------------------------------------------------ --- ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ ------------------------------------------------------------------------ leaf-user mailing list: [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-user SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ ------------------------------------------------------------------------ leaf-user mailing list: [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-user SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html