projects
/
grml-etc-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge remote-tracking branch 'origin/github/pr/133'
[grml-etc-core.git]
/
etc
/
zsh
/
zshenv
diff --git
a/etc/zsh/zshenv
b/etc/zsh/zshenv
index
9a97788
..
7397397
100644
(file)
--- a/
etc/zsh/zshenv
+++ b/
etc/zsh/zshenv
@@
-26,7
+26,11
@@
[[ -r /etc/environment ]] && source /etc/environment
# set environment variables (important for autologin on tty)
[[ -r /etc/environment ]] && source /etc/environment
# set environment variables (important for autologin on tty)
-export HOSTNAME=${HOSTNAME:-$(hostname)}
+if [ -n "${HOSTNAME}" ] ; then
+ export HOSTNAME="${HOSTNAME}"
+else
+ export HOSTNAME="$(uname -n)"
+fi
# make sure /usr/bin/id is available
if [[ -x /usr/bin/id ]] ; then
# make sure /usr/bin/id is available
if [[ -x /usr/bin/id ]] ; then