2022-07-04 17:48:20 +03:00
|
|
|
#!/bin/bash
|
2023-02-05 12:53:53 +03:00
|
|
|
set -e
|
2022-07-04 17:48:20 +03:00
|
|
|
# configuring mac-only things
|
|
|
|
|
|
|
|
# installing homebrew
|
|
|
|
|
2022-08-09 11:27:28 +03:00
|
|
|
echo "Installing Homebrew"
|
2022-07-04 17:48:20 +03:00
|
|
|
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
|
|
|
|
|
|
|
if [ "$(arch)" == "arm64" ]
|
|
|
|
then
|
|
|
|
HOMEBREW_PREFIX="/opt/homebrew"
|
|
|
|
else
|
2023-01-03 19:06:00 +03:00
|
|
|
HOMEBREW_PREFIX="/usr/local"
|
2022-07-04 17:48:20 +03:00
|
|
|
fi
|
|
|
|
echo "eval \"\$($HOMEBREW_PREFIX/bin/brew shellenv)\"" >> $HOME/.zprofile
|
|
|
|
brew install pinentry-mac gpg2
|
|
|
|
echo "pinentry-program $HOMEBREW_PREFIX/bin/pinentry-mac" >> $HOME/.gnupg/gpg-agent.conf
|
2022-07-09 18:23:31 +03:00
|
|
|
|
|
|
|
# install jb mono
|
|
|
|
|
|
|
|
brew tap homebrew/cask-fonts
|
2022-08-09 11:27:28 +03:00
|
|
|
brew install --cask font-jetbrains-mono alacritty
|