From: Alexander Barton Date: Mon, 25 May 2015 00:14:16 +0000 (+0200) Subject: "z9_local_conf": Make sure that $HOSTNAME is set X-Git-Url: https://arthur.ath.cx/gitweb/?a=commitdiff_plain;h=d16003f7bd8073fd18fb78abf6f484a7756f4073;p=OhMyZshExtensions.git "z9_local_conf": Make sure that $HOSTNAME is set --- diff --git a/plugins/z9_local_conf/z9_local_conf.plugin.zsh b/plugins/z9_local_conf/z9_local_conf.plugin.zsh index 036a42e..be365dd 100644 --- a/plugins/z9_local_conf/z9_local_conf.plugin.zsh +++ b/plugins/z9_local_conf/z9_local_conf.plugin.zsh @@ -1,6 +1,9 @@ # z9_local_conf.plugin.zsh # 2015-05-24, alex@barton.de +[ -n "$HOSTNAME" ] || HOSTNAME=$( hostname ) +export HOSTNAME + zshrc_local="/var/lib/$HOSTNAME/zshrc" [ -r "$zshrc_local" ] && source "$zshrc_local" unset zshrc_local