all repos — nixfiles @ c98904f9baacc0cec9c0e29d286bafa92e309a9d

System and user configuration, managed by nix and home-manager

Merge remote-tracking branch 'origin/master'
Alan Pearce alan@alanpearce.eu
Mon, 15 May 2017 14:32:49 +0200
commit

c98904f9baacc0cec9c0e29d286bafa92e309a9d

parent

89c2e4af81f14a9037d73f6e025ed8a290f961d6

1 files changed, 9 insertions(+), 0 deletions(-)

jump to
M zsh/.config/zsh/.zshenvzsh/.config/zsh/.zshenv
@@ -37,6 +37,15 @@ os=unknown       ;;
   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