]> arthur.barton.de Git - OhMyZshExtensions.git/commitdiff
Make sure "HOSTNAME" is set and exported in the environment
authorAlexander Barton <alex@barton.de>
Mon, 25 May 2015 00:03:57 +0000 (02:03 +0200)
committerAlexander Barton <alex@barton.de>
Mon, 25 May 2015 00:03:57 +0000 (02:03 +0200)
OhMyZshExtensions.zsh

index befeef0e5ab1d12e1cdcb485d904c16b5558421b..6b603ceada826a426061b2345852924555e6a904 100644 (file)
@@ -1,4 +1,7 @@
 # Additional "OhMyZshExtensions" shell initialization
 
+[ -n "$HOSTNAME" ] || HOSTNAME=$( hostname )
+export HOSTNAME
+
 # Default environment
 export LESS="-FmRX"