PS1 prompt ported from bash.