#!/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 ---" 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 echo "--- Running brew bundle ---" brew bundle --global 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 echo "Fixing dotnet symlink" sudo ln -s /opt/homebrew/opt/dotnet/libexec /usr/local/share/dotnet #### echo 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 echo "All done. Please reboot to make sure everything is applied."