zsh: Add check for Windows Subsystem for Linux
Alan Pearce alan@alanpearce.uk
Mon, 01 May 2017 13:51:15 +0200
1 files changed, 9 insertions(+), 0 deletions(-)
jump to
M zsh/.config/zsh/.zshenv → zsh/.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