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/137'
[grml-etc-core.git]
/
etc
/
zsh
/
zshenv
diff --git
a/etc/zsh/zshenv
b/etc/zsh/zshenv
index
8e4ae78
..
7397397
100644
(file)
--- a/
etc/zsh/zshenv
+++ b/
etc/zsh/zshenv
@@
-27,13
+27,9
@@
# set environment variables (important for autologin on tty)
if [ -n "${HOSTNAME}" ] ; then
# set environment variables (important for autologin on tty)
if [ -n "${HOSTNAME}" ] ; then
- export HOSTNAME="${HOSTNAME}"
-elif [[ -x $(which hostname) ]] ; then
- export HOSTNAME="$(hostname)"
-elif [[ -x $(which hostnamectl) ]] ; then
- export HOSTNAME="$(hostnamectl --static)"
+ export HOSTNAME="${HOSTNAME}"
else
else
- export HOSTNAME="$(uname -n)"
+
export HOSTNAME="$(uname -n)"
fi
# make sure /usr/bin/id is available
fi
# make sure /usr/bin/id is available