Fix macos setup script for M1
This commit is contained in:
@@ -276,5 +276,10 @@ autocmd FileType yaml setlocal ts=2 sts=2 sw=2 expandtab
|
||||
|
||||
if has("macunix")
|
||||
" Required for virtualenvs
|
||||
let g:python3_host_prog="/usr/local/bin/python3"
|
||||
let arch=substitute(system('uname -m'), '\n', '', '')
|
||||
if arch == 'arm64'
|
||||
let g:python3_host_prog="/opt/homebrew/bin/python3"
|
||||
else
|
||||
let g:python3_host_prog="/usr/local/bin/python3"
|
||||
endif
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user