projects
/
grml-etc-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vimrc: support vim-tiny and older versions of vim
[grml-etc-core.git]
/
etc
/
zsh
/
zshenv
diff --git
a/etc/zsh/zshenv
b/etc/zsh/zshenv
index
9b70921
..
8e4ae78
100644
(file)
--- a/
etc/zsh/zshenv
+++ b/
etc/zsh/zshenv
@@
-32,6
+32,8
@@
elif [[ -x $(which hostname) ]] ; then
export HOSTNAME="$(hostname)"
elif [[ -x $(which hostnamectl) ]] ; then
export HOSTNAME="$(hostnamectl --static)"
export HOSTNAME="$(hostname)"
elif [[ -x $(which hostnamectl) ]] ; then
export HOSTNAME="$(hostnamectl --static)"
+else
+ export HOSTNAME="$(uname -n)"
fi
# make sure /usr/bin/id is available
fi
# make sure /usr/bin/id is available