I have for a long time used the following prompt in my bash shell:
S1="\h \w\n\r% "hoarfrost /Users/jonasbn % I do however sometimes resort to wanting to copy a path and command to another terminal, where I would just write
cd
PS1="\h \w\n\r; "Warning gone, I could remove the hostname to make it easier to copy it.
PS1="\h\n\w\n\r; "
MYSQL_PS1="(\u@\h) [\d]> "For PostgreSQL (from .psqlrc)
\set PROMPT1 '(%n@%m) [%/]>'
I use '#' (comment marker) at the beginning of the 2-line prompt (when using X; space is at premium on console). That way even if you copy the whole thing, one can still edit the lines before executing. (BTW, vi-mode in zsh is really excellent, much better than ksh93 or bash3.)
\n\[\033[45m\]\u@\h${debian_chroot:+ \[\033[0m\]($debian_chroot)\[\033[45m\]}: \[\033[49m\]\[\033[31m\]\w\n\[\033[0m\]\[\033[45m\]#\[\033[0m\]\t \[\033[45m\]$\[\033[0m\]
I use color on my
\timing
\set PROMPT1 '%[%033[1;31;40m%]%n::%/@%`hostname -s` %x%R%[%033[0m\n%#%]'
\set PROMPT2 '... %#%] '