From 6e01168049351a99e486b4054a5d364b6b408ade Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Wed, 17 Jun 2020 08:33:11 -0700 Subject: [PATCH] [zsh] Add environment variables for OS versions to darwin env --- env | 1 + env.darwin | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/env b/env index 3e27e51..07c804e 100644 --- a/env +++ b/env @@ -11,6 +11,7 @@ [[ -e "$HOME/.shell-functions" ]] && source "$HOME/.shell-functions" export SYS=`uname -s | tr A-Z a-z` + # Set this to a non-zero integer to see startup messages export NOISY=0 diff --git a/env.darwin b/env.darwin index 9f5a97d..043c640 100644 --- a/env.darwin +++ b/env.darwin @@ -1,6 +1,10 @@ # vim: set ft=zsh: # Eryn Wells +export OSBUILD=`sysctl -n kern.osversion` +export OSVERSION=`sysctl -n kern.osproductversion` +export HWMODEL=`sysctl -n hw.model` + pythonroot="$HOME/Library/Python" if [[ -d "$pythonroot" ]]; then for f in `ls "$pythonroot"`; do