### -*-sh-*- ## Fetch the common configuration. . "$HOME/.shell-rc" ###-------------------------------------------------------------------------- ### Prompt hacking. __mdw_set_prompt_hacks () { case "$TERM" in linux*|screen*|xterm*|vt100*|eterm*) case "$(tput bold)" in "") bold="$(tput md)" unbold="$(tput me)" ;; *) bold="$(tput bold)" unbold="$(tput sgr0)" ;; esac ;; esac host=$(hostname) dir=' $(d=$(pwd); case "$d" in ("$HOME") d="~" ;; ("$HOME"/*) d="~${d#$HOME}" ;; esac; echo $d)' } __mdw_set_prompt_pieces __mdw_set_prompt