@@ -28,6 +28,13 @@ if [ -d $HOME/Library/Python/3.7/bin ] ; then
28
28
PATH=" ${PATH} :$HOME /Library/Python/3.7/bin"
29
29
fi
30
30
31
+ export HOMEBREW_PREFIX=" /opt/homebrew" ;
32
+ export HOMEBREW_CELLAR=" /opt/homebrew/Cellar" ;
33
+ export HOMEBREW_REPOSITORY=" /opt/homebrew" ;
34
+ export HOMEBREW_SHELLENV_PREFIX=" /opt/homebrew" ;
35
+ export MANPATH=" /opt/homebrew/share/man${MANPATH+: $MANPATH } :" ;
36
+ export INFOPATH=" /opt/homebrew/share/info:${INFOPATH:- } " ;
37
+
31
38
# rbenv
32
39
if [ ` which rbenv 2> /dev/null` ]; then
33
40
eval " $( rbenv init -) "
39
46
# PATH="${PATH}:/usr/local/share/npm/bin"
40
47
# fi
41
48
42
- # MySql
43
- # if [ -d /usr/local/mysql/bin ] ; then
44
- # PATH="${PATH}:/usr/local/mysql/bin"
45
- # fi
46
-
47
49
PATH=./bin:${PATH}
48
50
PATH=.:${PATH}
49
51
@@ -120,7 +122,7 @@ shopt -s extglob
120
122
shopt -s checkwinsize
121
123
122
124
export PAGER=" less"
123
- export EDITOR=" vim "
125
+ export EDITOR=" nvim "
124
126
125
127
# ###########################################################
126
128
# # History
@@ -185,7 +187,7 @@ complete -W "$(_ssh_completion)" ssh
185
187
# # Other
186
188
# ###########################################################
187
189
188
- source /usr/local /etc/bash_completion.d/cdargs-bash.sh
190
+ source $HOMEBREW_PREFIX /etc/bash_completion.d/cdargs-bash.sh
189
191
190
192
if [[ " $USER " == ' ' ]]; then
191
193
# mainly for cygwin terminals. set USER env var if not already set
@@ -288,3 +290,10 @@ function gkill () {
288
290
export NVM_DIR=" $HOME /.nvm"
289
291
[ -s " $NVM_DIR /nvm.sh" ] && \. " $NVM_DIR /nvm.sh" # This loads nvm
290
292
[ -s " $NVM_DIR /bash_completion" ] && \. " $NVM_DIR /bash_completion" # This loads nvm bash_completion
293
+
294
+ # # folder /opt/homebrew contains Homebrew for arm64 #m1_homebrew-arm64
295
+ [[ $( arch) == " arm64" ]] && export PATH=" /opt/homebrew/bin:/opt/homebrew/sbin:$PATH " # m1_homebrew-arm64
296
+ [[ $( arch) == " x86_64" ]] && export PATH=" /usr/local/Homebrew/bin:/usr/local/Homebrew/sbin:$PATH "
297
+
298
+ alias ibrew=' arch --x86_64 /usr/local/Homebrew/bin/brew'
299
+
0 commit comments