guest@dotshare [~/groups/shells/zsh] $ ls Minimal-prompt/ | cat

Minimal prompt (scrot, raw, dl) (+2 likes)

bollovan Jun 22, 2011 (shells/zsh)

SCROT

1
2
PS1='%(?.%F{green}.%F{red})%#%f '
RPS1='[%B%F{blue}%~%f%b]'

CLICK TO VIEW

x

Notes

A minimal zsh prompt which shows the cwd in the left and a % if shell is without privileges and a # if it is ran with privileges and makes that symbol green if exit code is 0 and red if it is not 0.