dot/shell-rc, etc.: Introduce an easily user-definable prompt section.
[profile] / dot / bashrc
index 18a2d7d..9175064 100644 (file)
@@ -17,8 +17,8 @@ __mdw_precmd_hook= __mdw_preexec_hook=
 __mdw_running=t
 
 __mdw_run_precmd_hook () {
-  __mdw_running=nil
   __mdw_runhook __mdw_precmd_hook "$@"
+  __mdw_running=nil
 }
 __mdw_run_preexec_hook () {
   case $__mdw_running in
@@ -62,6 +62,7 @@ __mdw_set_prompt_hacks () {
        *) bold="\[$(tput bold)\]" unbold="\[$(tput sgr0)\]" ;;
       esac
       gitcolour="\[$(tput setaf 6)\]"
+      extracolour="\[$(tput setaf 3)\]"
       rccolour="\[$(tput setaf 1)\]"
       uncolour="\[$(tput op)\]"
       nl="\[\r\]"