From 76c5517476c6b33fdfa7648b909308c04b6a9e0b Mon Sep 17 00:00:00 2001 From: hophacker Date: Thu, 28 Jun 2018 11:22:43 +0800 Subject: [PATCH] set different zsh path for different os --- vim/settings.vim | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/vim/settings.vim b/vim/settings.vim index f131fed..d117360 100644 --- a/vim/settings.vim +++ b/vim/settings.vim @@ -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 +