## Only do this if we haven't done it before. (Note that this guard isn't
## exported, so subshells will need to make their own arrangements.)
-case ${__mdw_shellrc+t} in
+case ${__mdw_bashrc+t} in
t) ;;
- *) __mdw_shellrc=done
+ *) __mdw_bashrc=t
## Fetch the common configuration.
. "$HOME/.shell-rc"
## Completion.
__mdw_source_if_exists /etc/bash_completion "$HOME/.bash_completion"
-## Set the temporary directory again. (If we've switched users, we'll want a
-## different temporary directory.)
-case ${TMPDIR+t} in t) ;; *) eval $(tmpdir -b); esac
-
###--------------------------------------------------------------------------
### Prompt hacking.
__mdw_set_prompt_hacks () {
case "$TERM" in
- linux*|screen*|xterm*|vt100*|eterm*)
+ linux*|screen*|xterm*|putty*|vt100*|eterm*)
case "$(tput bold)" in
"") bold="\[$(tput md)\]" unbold="\[$(tput me)\]" ;;
*) bold="\[$(tput bold)\]" unbold="\[$(tput sgr0)\]" ;;
if (( ${BASH_VERSINFO[0]} >= 4 )); then shopt -s globstar; fi
shopt -s gnu_errfmt
shopt -s histappend
+set -o histexpand
shopt -s histreedit
shopt -u histverify
shopt -s hostcomplete