new file mode 100644
@@ -0,0 +1,9 @@
+__prompt_pwd()
+{
+ if [ "$PWD" = "$HOME" ]
+ then
+ printf "$1" '~'
+ else
+ printf "$1" "${PWD##?*/}"
+ fi
+}