chiark / gitweb /
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 968bd7344bb36e841d3001bff060182969ed5662..975410649ed39b758c32fa1e94f23dcb8524dbf6 100644 (file)
@@ -61,8 +61,10 @@ __mdw_set_prompt_pieces () {
     *) sec_l="" sec_r=""
   esac
 
     *) 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${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"
 
   ## Put together the main pieces.
   __mdw_prompt_left="$nl$bold$left$sec_l$u$host$hqual$sec_r$dir"