From f28fe7ef1170a5049f294974b57a6dc7292986b0 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Mon, 1 May 2017 13:51:15 +0200 Subject: zsh: Add check for Windows Subsystem for Linux --- zsh/.config/zsh/.zshenv | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'zsh/.config') diff --git a/zsh/.config/zsh/.zshenv b/zsh/.config/zsh/.zshenv index b026d9a1..114e5ce9 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 -- cgit 1.4.1