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 export PROMPT='%B%(?..[%?] )%b%n@%U%m%u> ' export RPROMPT="%{$fg_no_bold[${1:-green}]%}%~%{$reset_color%}" else export PROMPT="%(?..[%?] )%n@%m:%~> " fi } prompt_walters_setup "$@"