summary refs log tree commit diff stats
path: root/zsh
diff options
context:
space:
mode:
Diffstat (limited to 'zsh')
-rw-r--r--zsh/.config/zsh/.zshenv9
1 files changed, 9 insertions, 0 deletions
diff --git a/zsh/.config/zsh/.zshenv b/zsh/.config/zsh/.zshenv
index b026d9a..114e5ce 100644
--- a/zsh/.config/zsh/.zshenv
+++ b/zsh/.config/zsh/.zshenv
@@ -37,6 +37,15 @@ then
       ;;
   esac
 
+  if [[ $os == "linux" ]]
+  then
+    read osrelease < /proc/sys/kernel/osrelease
+    if [[ $osrelease =~ Microsoft$ ]]
+    then
+      windows=1
+    fi
+  fi
+
   case $MACHTYPE in
     *64)
       arch=amd64