Browse Source

Update homebrew and homebrew paths

Andrew Swistak 3 years ago
parent
commit
12bbc77865
2 changed files with 11 additions and 4 deletions
  1. 2 2
      vimrc
  2. 9 2
      zshrc

+ 2 - 2
vimrc

@@ -546,8 +546,8 @@ function! s:MaybeRunProjectSettings(file)
 endfunction
 
 if has('nvim')
-  let g:python_host_prog = "/usr/local/bin/python2"
-  let g:python3_host_prog = "/usr/local/bin/python3"
+  let g:python3_host_prog = "/opt/homebrew/bin/python3"
+  let g:loaded_perl_provider = 0 "disable perl
 endif
 
 let g:ycm_key_list_select_completion = ['<C-n>', '<Down>']

+ 9 - 2
zshrc

@@ -22,8 +22,8 @@ export EDITOR="nvim"
 alias vim="nvim"
 
 # OS X completions
-fpath=(/usr/local/share/zsh-completions $fpath)
-source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
+fpath=(/opt/homebrew/share/zsh-completions $fpath)
+source /opt/homebrew/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
 
 dot_sync() {
   current_branch=$(git branch | grep '\*.*' | cut -d '*' -f 2 | tr -d ' ')
@@ -91,3 +91,10 @@ plugins=(
   rvm
   yarn
 )
+
+eval "$(/opt/homebrew/bin/brew shellenv)"
+
+export NVM_DIR="$HOME/.nvm"
+[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm
+[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"  # This loads nvm bash_completion
+export GPG_TTY=$(tty)