chiark / gitweb /
el/dot-emacs.el (mdw-fontify-rust): Fix integer literal syntax.
[profile] / dot / shrc
CommitLineData
74a53e28
MW
1### -*-sh-*-
2
3## Fetch the common configuration.
4. "$HOME/.shell-rc"
5
6###--------------------------------------------------------------------------
7### Prompt hacking.
8
9__mdw_set_prompt_hacks () {
10 case "$TERM" in
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)" ;;
15 esac
16 ;;
17 esac
18 host=$(hostname)
956c645f 19 dir=' $(d=$(pwd); case "$d" in ("$HOME") d="~" ;; ("$HOME"/*) d="~${d#$HOME}" ;; esac; echo $d)'
74a53e28
MW
20}
21
22__mdw_set_prompt_pieces
23__mdw_set_prompt