From: Alexander Barton Date: Mon, 25 May 2015 00:03:57 +0000 (+0200) Subject: Make sure "HOSTNAME" is set and exported in the environment X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fec41e0f832e0e467962b175fd0b33d62d57b417;p=OhMyZshExtensions.git Make sure "HOSTNAME" is set and exported in the environment --- diff --git a/OhMyZshExtensions.zsh b/OhMyZshExtensions.zsh index befeef0..6b603ce 100644 --- a/OhMyZshExtensions.zsh +++ b/OhMyZshExtensions.zsh @@ -1,4 +1,7 @@ # Additional "OhMyZshExtensions" shell initialization +[ -n "$HOSTNAME" ] || HOSTNAME=$( hostname ) +export HOSTNAME + # Default environment export LESS="-FmRX"