From: Mark Wooding Date: Thu, 22 Nov 2018 12:36:17 +0000 (+0000) Subject: dot/shell-rc: Notice `$MDW_BUILDENV' and add it to the prompt. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/profile/commitdiff_plain/1a1af55ecea693d26834658af26ae096626adb4b?ds=inline dot/shell-rc: Notice `$MDW_BUILDENV' and add it to the prompt. For things like cross-building environments. --- diff --git a/dot/shell-rc b/dot/shell-rc index 968bd73..9754106 100644 --- a/dot/shell-rc +++ b/dot/shell-rc @@ -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"