dotfiles/tools/mac.sh

23 lines
575 B
Bash
Raw Normal View History

2022-07-04 17:48:20 +03:00
#!/bin/bash
GREEN="\033[32m"
RED="\033[31m"
2022-07-05 08:15:27 +03:00
CLEAR_COLOR="\033[0m"
2022-07-04 17:48:20 +03:00
# configuring mac-only things
# installing homebrew
2022-07-05 08:15:27 +03:00
echo "${GREEN}Installing Homebrew${CLEAR_COLOR}"
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
HOMEBREW_PREFIX="/usr/local/homebrew"
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