S Mohan wrote:
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.
The technique of creating an alias for the cd command is only required to mimic the behavior of bash, which allows dynamic expansion of the prompt for things like current directory.

To change the basic Dachstein prompt, it should be enough to edit the .profile file in /root/. Note that in Dachstein, root has a .profile file that assigns PS1, which will override global changes made in /etc/profile (which may be part of why you're having problems), so if you want to make changes that affect *ALL* users, you'll have to edit /etc/profile as well as /root/.profile

--
Charles Steinkuehler
[EMAIL PROTECTED]




-------------------------------------------------------
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

Reply via email to