X-Git-Url: https://git.distorted.org.uk/~mdw/profile/blobdiff_plain/a33d1f8ca747f70deefcd57d2d51876a0f6f9c1c..047abed68dbdcaf333aab11d9d9124c87084ed51:/dot/bashrc diff --git a/dot/bashrc b/dot/bashrc index c26fad3..37ff27c 100644 --- a/dot/bashrc +++ b/dot/bashrc @@ -1,4 +1,4 @@ -### -*-sh-*- +### -*-bash-*- ### ### Bash session things @@ -26,7 +26,12 @@ if [ -t 0 ]; then ## Fancy highlighting in some terminals. case "$TERM" in linux*|screen*|xterm*|vt100*|eterm*) - bold="\[$(tput bold)\]" unbold="\[$(tput sgr0)\]" nl="\[ \]" ;; + case "$(tput bold)" in + "") bold="\[$(tput md)\]" unbold="\[$(tput me)\]" ;; + *) bold="\[$(tput bold)\]" unbold="\[$(tput sgr0)\]" ;; + esac + nl="\[ \]" + ;; *) bold='' unbold='' nl='' ;; esac