diff --git a/vim/settings.vim b/vim/settings.vim index d117360..81c3141 100644 --- a/vim/settings.vim +++ b/vim/settings.vim @@ -13,15 +13,3 @@ for fpath in split(globpath(vimsettings, '*.vim'), '\n') exe 'source' fpath endfor - - - -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 - diff --git a/vim/settings/path.vim b/vim/settings/path.vim index 867c31e..a13fa5a 100644 --- a/vim/settings/path.vim +++ b/vim/settings/path.vim @@ -1,9 +1,12 @@ " Set the shell to bash so we inherit its path, to make sure " we inherit its path. This affects :Rtags finding the right " path to homebrewed ctags rather than the XCode version of ctags -if has('win32') -elseif has('mac') - set shell=/usr/local/bin/zsh\ -l -elseif has('unix') - set shell=/usr/bin/zsh\ -l +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 +elseif has('win32') endif