For the prompt, I have the following line in my ~/.bash_profile and ~/.bashrc use: export PS1="[EMAIL PROTECTED]:\w\\n[\#]\\$ " which produces, for example [EMAIL PROTECTED]:~/bin [3]$ ls -laR or [EMAIL PROTECTED]:/usr/src/linux [4]# ls -laR
\$ gives you a different prompt char ($ or #) when logged as a normal user or as root; \u gives the username; \h gives the hostname; \w the present working directory (with shorted $HOME, i.e., ~); \n is a carriage return which I use since I have too long pathnames so I prefer to have the prompt and history command number in the next line. The special characters (like \n and \$) require you to escape them by preppending a backslash. You'll find this and more in the bash manpage. I also used to have slightly different prompts in bash_profile and .bashrc to distinguish between login and non login sessions. lazaro. <[EMAIL PROTECTED]> ______________________________ Reply Separator _________________________________ Subject: bash profile question Author: debian-user@lists.debian.org at cclink Date: 04.10.96 23:36 I know you can use your .bash_profile to let you see the current directory and a prompt ( like in dos or os/2 ) I do have a profile which does this but was wondering if some people could post their profiles so maybe I can choose another which I like more or something like that. Carved upon my stone, my body lie but still I roam >From Metallica ( anywhere I roam ) Marcel Burggraeve ( aka Pearl_Jam on irc ) http://www.cistron.nl/~graeve -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED]