dot/shell-rc: Notice `$MDW_BUILDENV' and add it to the prompt.
authorMark Wooding <mdw@distorted.org.uk>
Thu, 22 Nov 2018 12:36:17 +0000 (12:36 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Thu, 22 Nov 2018 12:36:17 +0000 (12:36 +0000)
For things like cross-building environments.

dot/shell-rc

index 968bd73..9754106 100644 (file)
@@ -61,8 +61,10 @@ __mdw_set_prompt_pieces () {
     *) sec_l="" sec_r=""
   esac
 
-  ## If this is an schroot environment then point this out.
+  ## If this is an schroot environment or some other interesting augmented
+  ## environment then point this out.
   hqual="$hqual${SCHROOT_CHROOT_NAME+/$SCHROOT_CHROOT_NAME}"
+  hqual="$hqual${MDW_BUILDENV+/$BUILDENV}"
 
   ## Put together the main pieces.
   __mdw_prompt_left="$nl$bold$left$sec_l$u$host$hqual$sec_r$dir"