set different zsh path for different os

This commit is contained in:
hophacker 2018-06-28 11:22:43 +08:00
parent 7e937a61ef
commit 76c5517476

View File

@ -15,4 +15,13 @@ for fpath in split(globpath(vimsettings, '*.vim'), '\n')
endfor
set shell=/usr/local/bin/zsh
if has("unix")
let s:uname = system("uname -s")
if s:uname == "Darwin"
set shell=/usr/local/bin/zsh
else
set shell=/usr/bin/zsh
endif
endif