From a4d24f3b17c2e60915138db941b1e68faa6bd964 Mon Sep 17 00:00:00 2001 From: Michael Campagnaro Date: Wed, 11 Sep 2019 23:12:10 -0400 Subject: [PATCH] Support msys uname --- script_helpers/platform.sh | 1 + vimrc | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/script_helpers/platform.sh b/script_helpers/platform.sh index 1873d1f..892f71c 100644 --- a/script_helpers/platform.sh +++ b/script_helpers/platform.sh @@ -6,6 +6,7 @@ case "${uname_s}" in Darwin*) platform="MACOS" platform_os="MACOS";; CYGWIN*) platform="CYGWIN" platform_os="WINDOWS";; MINGW*) platform="MINGW" platform_os="WINDOWS";; + MSYS*) platform="MINGW" platform_os="WINDOWS";; *) platform="UNKNOWN:${uname_s} platform_os="UNKNOWN_OS"" esac diff --git a/vimrc b/vimrc index 2b3e385..b46259b 100644 --- a/vimrc +++ b/vimrc @@ -37,7 +37,7 @@ let s:uname = system("echo -n \"$(uname)\"") let s:vim_dir = $HOME . "/.vim" function! IsWindows() - if s:uname =~ "mingw" + if s:uname =~ "mingw" || s:uname =~ "msys" return 1 endif return 0