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.barton.de/cgi-bin/gitweb.cgi?p=OhMyZshExtensions.git;a=commitdiff_plain;h=d16003f7bd8073fd18fb78abf6f484a7756f4073;hp=884223ab73c390f380c0375dfedf47079eb4126c "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