"Civ Kevin F. Havener" <[EMAIL PROTECTED]> writes: > I'll take a crack at this one since I've asked and received an answer to > the very same question. > > I use a two-line prompt that tells me who I'm logged on as and at what > machine on the first line and what is the full path to the current directory. > Put this in your ~/.bash_profile or in /etc/profile (for system-wide > default): PS1='<[EMAIL PROTECTED]>\n<`pwd`>\$ '
Here's another option (from my .bashrc) that works with rxvt's (and xterms?). It dynamically sets the title bar to [EMAIL PROTECTED]:pwd so you don't have to have it all on the prompt. If you're not using an xterm/rxvt, it sets the prompt instead. It also does /home/username -> ~ translation when appropriate. if [ ${PS1:-UNSET} = UNSET ] then INTERACTIVE_SHELL=F else INTERACTIVE_SHELL=T if [ "$TERM" = x"term" ] then set_titlebar () { echo -n "]2;$*"; } export -f set_titlebar my_dirname () { if [ "${PWD#$HOME}" != "$PWD" ] then echo '~'${PWD#$HOME} else echo $PWD fi } export -f my_dirname export PS1='\n\!\$ ' export PROMPT_COMMAND='eval set_titlebar [EMAIL PROTECTED]:`my_dirname`' else export PS1='[EMAIL PROTECTED]:\w\n\!\$ ' fi fi -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .