dot/screenrc: Customize a whole lot of keybindings.
[profile] / dot / shrc
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)
19 dir=' $(d=$(pwd); case "$d" in ("$HOME") d="~" ;; ("$HOME"/*) d="~${d#$HOME}" ;; esac; echo $d)'
20 }
21
22 __mdw_set_prompt_pieces
23 __mdw_set_prompt
24
25 ###----- That's all, folks --------------------------------------------------