archx/macx.sh

48 lines
1.6 KiB
Bash
Raw Normal View History

2023-02-16 19:04:43 +01:00
#!/bin/bash
echo "--- Installing homebrew ---"
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
(echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> ~/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
echo "--- Downloading Brewfile ---"
2023-02-16 22:15:43 +01:00
mkdir -P ~/Projects
git clone https://git.ztn.sh/zotan/os-install-scripts ~/Projects/os-install-scripts
echo "--- Linking to system Brewfile ---"
ln -s ~/Projects/os-install-scripts/macx-resources/Brewfile ~/.Brewfile
2023-02-16 19:04:43 +01:00
echo "--- Running brew bundle ---"
2023-02-16 22:15:43 +01:00
brew bundle --global
2023-02-16 19:04:43 +01:00
echo "--- Running postinstall steps ---"
echo "Configuring pinentry-mac"
mkdir -p ~/.gnupg
echo "pinentry-program /opt/homebrew/bin/pinentry-mac" >> ~/.gnupg/gpg-agent.conf
echo "Configuring dock autohide"
defaults write com.apple.dock autohide -int 1
defaults write com.apple.dock autohide-delay -int 0
defaults write com.apple.dock autohide-time-modifier -float 0.4
killall Dock
echo "Disabling font smoothing"
defaults -currentHost write -g AppleFontSmoothing -int 0
2023-02-16 19:57:57 +01:00
echo "Fixing dotnet symlink"
sudo ln -s /opt/homebrew/opt/dotnet/libexec /usr/local/share/dotnet
2023-02-16 19:04:43 +01:00
2023-02-16 22:15:43 +01:00
2023-02-16 19:04:43 +01:00
####
echo
2023-02-16 22:15:43 +01:00
echo "iOS Applications not installed automatically: bunq"
echo "Please fetch them from the App Store manually."
echo
echo "Setapp Applications not installed automatically: TablePlus, Jump Desktop, RapidAPI, WiFi Explorer, Archiver, Proxyman"
echo "Please fetch them from Setapp manually."
echo
echo "Other Applications not installed automatically: Capture One, u-he hive, Arturia Software Center"
echo "Please download and install them manually."
echo
echo
2023-02-16 19:04:43 +01:00
echo "All done. Please reboot to make sure everything is applied."