dot/*: Major shake-up of shell configuration.
[profile] / dot / shrc
diff --git a/dot/shrc b/dot/shrc
new file mode 100644 (file)
index 0000000..90710df
--- /dev/null
+++ b/dot/shrc
@@ -0,0 +1,23 @@
+### -*-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=""
+}
+
+__mdw_set_prompt_pieces
+__mdw_set_prompt