Last active
May 7, 2025 17:08
-
-
Save Wrestor/cb373a5b3aee8540ad5f5a43a9a752ff to your computer and use it in GitHub Desktop.
Setup my new Mac
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
echo "Enable Limit Ad Tracking" | |
defaults write com.apple.AdLib forceLimitAdTracking -bool yes | |
defaults write com.apple.AdLib AD_DEVICE_IDFA -string '00000000-0000-0000-0000-000000000000' | |
echo "Installing Homebrew with Xcode Command Line Tools..." | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
# Add brew shellenv to .zprofile if not already present | |
grep -qxF 'eval "$(/opt/homebrew/bin/brew shellenv)"' ~/.zprofile || echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zprofile | |
eval "$(/opt/homebrew/bin/brew shellenv)" | |
echo "Testing Homebrew installation..." | |
brew doctor | |
echo "Disabling brew analytics..." | |
brew analytics off | |
echo "Installing Command line Utilities..." | |
brew install ffmpeg zsh-autosuggestions python openjdk | |
echo "Overwriting .zshrc if it exists..." | |
[ -e ~/.zshrc ] && cat << 'EOF' > ~/.zshrc | |
PROMPT="%F{104}%n %1~ %# %f" | |
alias python=/opt/homebrew/bin/python3 | |
alias pip=pip3 | |
export GTK_THEME=Adwaita:dark | |
PATH="/opt/homebrew/opt/openjdk/bin:$PATH" | |
source /opt/homebrew/share/zsh-autosuggestions/zsh-autosuggestions.zsh | |
EOF | |
echo "Creating empty hushlogin file" | |
touch ~/.hushlogin | |
echo "Installing Applications..." | |
brew install --cask \ | |
anydesk keka spotify appcleaner latest subler chatgpt megasync \ | |
sublime-text daisydisk mkvtoolnix syntax-highlight discord mp3tag \ | |
tiles google-chrome notion transmission handbrake raycast \ | |
visual-studio-code hot shottr iina silentknight | |
echo "Installing Spotify mod..." | |
bash <(curl -sSL https://spotx-official.github.io/run.sh) | |
echo -e "Don't forget to remove setup.sh from the root directory!" | |
echo -e "Run: \e[31mrm setup.sh\e[0m" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
All installed applications as of 25.04.2025