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:
c3351a1
)
dot/shell-rc: Make sure that `$USER' is defined.
author
Mark Wooding
<mdw@distorted.org.uk>
Fri, 8 May 2020 22:29:50 +0000
(23:29 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Wed, 13 May 2020 17:31:10 +0000
(18:31 +0100)
dot/shell-rc
patch
|
blob
|
blame
|
history
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.