Support msys uname
This commit is contained in:
parent
20f2ea2aca
commit
a4d24f3b17
|
@ -6,6 +6,7 @@ case "${uname_s}" in
|
||||||
Darwin*) platform="MACOS" platform_os="MACOS";;
|
Darwin*) platform="MACOS" platform_os="MACOS";;
|
||||||
CYGWIN*) platform="CYGWIN" platform_os="WINDOWS";;
|
CYGWIN*) platform="CYGWIN" platform_os="WINDOWS";;
|
||||||
MINGW*) platform="MINGW" platform_os="WINDOWS";;
|
MINGW*) platform="MINGW" platform_os="WINDOWS";;
|
||||||
|
MSYS*) platform="MINGW" platform_os="WINDOWS";;
|
||||||
*) platform="UNKNOWN:${uname_s} platform_os="UNKNOWN_OS""
|
*) platform="UNKNOWN:${uname_s} platform_os="UNKNOWN_OS""
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
2
vimrc
2
vimrc
|
@ -37,7 +37,7 @@ let s:uname = system("echo -n \"$(uname)\"")
|
||||||
let s:vim_dir = $HOME . "/.vim"
|
let s:vim_dir = $HOME . "/.vim"
|
||||||
|
|
||||||
function! IsWindows()
|
function! IsWindows()
|
||||||
if s:uname =~ "mingw"
|
if s:uname =~ "mingw" || s:uname =~ "msys"
|
||||||
return 1
|
return 1
|
||||||
endif
|
endif
|
||||||
return 0
|
return 0
|
||||||
|
|
Loading…
Reference in New Issue
Block a user