Skip to content

Commit

Permalink
set homebrew for Apple Silicon CPU
Browse files Browse the repository at this point in the history
  • Loading branch information
seagle0128 committed Sep 8, 2024
1 parent 105564f commit e23f47b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .zshrc.local
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ PROXY=http://127.0.0.1:7890

# Homebrew
if [[ $OSTYPE == darwin* ]]; then
# For Apple Silicon CPU
[[ $CPUTYPE == arm* ]] && eval "$(/opt/homebrew/bin/brew shellenv)"

function set_homebrew_env()
{
# https://mirrors.ustc.edu.cn/
Expand Down Expand Up @@ -115,9 +118,6 @@ if [[ $OSTYPE == darwin* ]]; then

# Use mirror env by default
set_homebrew_env

# For Apple Silicon CPU
[[ $CPUTYPE == arm* ]] && eval "$(/opt/homebrew/bin/brew shellenv)"
fi

# Golang
Expand Down

0 comments on commit e23f47b

Please sign in to comment.