This is almost useless when using a terminal emulator and I seldom
create new subshells on my own.
# The prompt is in green and blue to make easily detectable, the error exit
# code in red and bold and the job count in yellow.
PROMPT="$green%B%m%b$default:$blue%B%~%b$default \
-%(1j.$yellow%j$default.)%(2L.+.)%# \
+%(1j.$yellow%j$default.)%# \
%(?..($red%B%?%b$default%) )"
# VCS_Info was added in 4.3.9 but it works in earlier versions too. So load it