3 ## Fetch the common configuration.
6 ###--------------------------------------------------------------------------
9 __mdw_set_prompt_hacks () {
11 linux*|screen*|xterm*|vt100*|eterm*)
12 case "$(tput bold)" in
13 "") bold="$(tput md)" unbold="$(tput me)" ;;
14 *) bold="$(tput bold)" unbold="$(tput sgr0)" ;;
19 dir=' $(d=$(pwd); case "$d" in ("$HOME") d="~" ;; ("$HOME"/*) d="~${d#$HOME}" ;; esac; echo $d)'
22 __mdw_set_prompt_pieces
25 ###----- That's all, folks --------------------------------------------------