Dave's Zibaldone

A simple PS1 Bash Prompt (and one for Zsh too)

export PS1='\n($?, $(cat /proc/loadavg | colrm 5 | xargs), $(du -hs | colrm 8 | xargs), $(ls -1 | wc -l)) \u@\H:\w/\n\$ '

This outputs something like

(0, 0.85, 6.8G, 13) david@sixhat.net:~/
$

where the individual values are (in order):

Notice that it has no colours. Although colours are a nice feature to have, they don't work in every terminal, but within your .profile you can do conditional prompts based on colour support by the terminal.

What about Zsh prompts?

Well, zsh prompts are a little bit different to configure, but a similar one that I use in my MACs is this:

export PS1='
%T %(1d.%B[First Day of Month]%b .)%U(%?,%j)%u %n@%m %F{red}%0~%f
%F{green}%B%(!.%#.;)%b%f '

The expansions are different from bash, so you are better off reading the manual about expansions, but the above one can give you a nice start.