Support msys uname

This commit is contained in:
Michael Campagnaro 2019-09-11 23:12:10 -04:00
parent 20f2ea2aca
commit a4d24f3b17
2 changed files with 2 additions and 1 deletions

View File

@ -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

2
vimrc
View File

@ -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