"Michael D. Schleif" wrote: > > Rob Fegley wrote: > > > > I've tried about fifteen ways to get the prompt to look like this: > > > > [root@firewall /usr/sbin]# <--- where "/usr/sbin" is a current working directory > > I use bash; so, I cannot vouch for ash: > > # PS1=`echo -n -e "[$USER@$HOSTNAME $HOME]# "` > [root@trout /root]#
Sorry, that was incomplete. This ia what I do: Put this in /etc/profile: # Set the prompt else than login cdprompt () { command cd $@ export PS1=`echo -n -e "\n$USER@$HOSTNAME:$PWD\n# "` } alias cd=cdprompt Then, I put this in ~/.profile: export PS1=`echo -n -e "\n$USER@$HOSTNAME:$HOME\n# "` Obviously, you can modify those variable strings to do pretty much anything you want to see; but, again, this is working under bash and not ash . . . hth -- Best Regards, mds mds resource 888.250.3987 Dare to fix things before they break . . . Our capacity for understanding is inversely proportional to how much we think we know. The more I know, the more I know I don't know . . . ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Bringing you mounds of caffeinated joy. http://thinkgeek.com/sf ------------------------------------------------------------------------ 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