__prompt_pwd() { if [ "$PWD" = "$HOME" ] then printf "$1" '~' else printf "$1" "${PWD##?*/}" fi }