/usr/share/zsh/5.5.1/functions
Edit: /usr/share/zsh/5.5.1/functions/prompt_walters_setup (528B)
prompt_walters_help () {
cat <<'EOF'
This prompt is color-scheme-able. You can invoke it thus:
prompt walters [
]
where the color is for the right-hand prompt.
This prompt was stolen from Colin Walters ,
who gives credit to Michel Daenzer .
EOF
}
prompt_walters_setup () {
if [[ "$TERM" != "dumb" ]]; then
PS1='%B%(?..[%?] )%b%n@%U%m%u> '
RPS1="%F{${1:-green}}%~%f"
else
PS1="%(?..[%?] )%n@%m:%~> "
fi
prompt_opts=(cr percent)
}
prompt_walters_setup "$@"