chiark
/
gitweb
/
~mdw
/
profile
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c7d3a60
)
dot/shell-rc: Notice `$MDW_BUILDENV' and add it to the prompt.
author
Mark Wooding
<mdw@distorted.org.uk>
Thu, 22 Nov 2018 12:36:17 +0000
(12:36 +0000)
committer
Mark 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
patch
|
blob
|
blame
|
history
diff --git
a/dot/shell-rc
b/dot/shell-rc
index 968bd7344bb36e841d3001bff060182969ed5662..975410649ed39b758c32fa1e94f23dcb8524dbf6 100644
(file)
--- 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"