chiark
/
gitweb
/
~mdw
/
profile
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
dot/shell-rc: Make sure that `$USER' is defined.
[profile]
/
dot
/
shell-rc
diff --git
a/dot/shell-rc
b/dot/shell-rc
index 3c168b0b017b66ab51294165ce7b1b1ef0d1e2a5..9ba034156c142b9f70399243f3666bd8bf26556e 100644
(file)
--- a/
dot/shell-rc
+++ b/
dot/shell-rc
@@
-67,6
+67,8
@@
__mdw_hqual=$__mdw_hqual${SCHROOT_CHROOT_NAME+/$SCHROOT_CHROOT_NAME}
__mdw_hqual=$__mdw_hqual${CROSS_BUILDENV+/$CROSS_BUILDENV}
__mdw_set_prompt_hacks () { host=$__mdw_host; dir=""; }
+: ${USER-${LOGNAME-$(id -un)}}
+
__mdw_set_prompt_pieces () {
## Fancy highlighting in some terminals.