support MacOS
[~madcoder/dotfiles.git] / config / zsh / 20_environment
index 6c33ec7..8c1e026 100644 (file)
@@ -38,6 +38,6 @@ else
     esac
 fi
 
-if test -z "$TZ"; then
+if test -f /etc/timezone -a -z "$TZ"; then
     export TZ=$(cat /etc/timezone)
 fi