Created
Apr 7, 2023 1:47 AM
Tags
rosetta
$ softwareupdate --install-rosetta --agree-to-license
~/.zshrc
typeset -U path PATH
path=(
/opt/homebrew/bin(N-/)
/usr/local/bin(N-/)
$path
)
if (( $+commands[sw_vers] )) && (( $+commands[arch] )); then
[[ -x /usr/local/bin/brew ]] && alias brew="arch -arch x86_64 /usr/local/bin/brew"
alias x64='exec arch -x86_64 /bin/zsh'
alias a64='exec arch -arm64e /bin/zsh'
switch-arch() {
if [[ "$(uname -m)" == arm64 ]]; then
arch=x86_64
elif [[ "$(uname -m)" == x86_64 ]]; then
arch=arm64e
fi
exec arch -arch $arch /bin/zsh
}
fi
setopt magic_equal_subst
source ~/.zshrc
$ cd
$ touch Brewfile
$ vim Brewfile
// Brewfile
tap "homebrew/bundle"
tap "homebrew/cask"
tap "homebrew/cask-versions"
tap "homebrew/core"
brew "asdf"
brew "tree"
brew "git"
brew "mas"
brew "autoconf"
brew "automake"
brew "bison"
brew "freetype"
brew "gettext"
brew "icu4c"
brew "krb5"
brew "libedit"
brew "libiconv"
brew "libjpeg"
brew "libpng"
brew "libxml2"
brew "libzip"
brew "pkg-config"
brew "re2c"
brew "zlib"
brew "gd"
brew "libsodium"
brew "oniguruma"
brew "pict"
cask "rancher"
cask "astah-professional"
cask "fig"
cask "gather"
cask "google-chrome"
cask "google-drive"
cask "google-japanese-ime"
cask "hyper"
cask "microsoft-excel"
cask "microsoft-word"
cask "microsoft-powerpoint"
cask "phpstorm"
cask "visual-studio-code"
cask "zoom"
cask "slack"
mas "Keynote", id: 409183694
mas "Numbers", id: 409203825
mas "Pages", id: 409201541
$ =brew bundle