Skip to content

Instantly share code, notes, and snippets.

@Wrestor
Last active May 7, 2025 17:08
Show Gist options
  • Save Wrestor/cb373a5b3aee8540ad5f5a43a9a752ff to your computer and use it in GitHub Desktop.
Save Wrestor/cb373a5b3aee8540ad5f5a43a9a752ff to your computer and use it in GitHub Desktop.
Setup my new Mac
#!/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"
@Wrestor
Copy link
Author

Wrestor commented Oct 30, 2023

Configurations

Application Configuration
macOS OneDrive
Chrome Extension configurations OneDrive

Sublime Text

Keybinds
[
  // Toggle Terminus
  {
      "keys": ["super+`"],
      "command": "toggle_terminus_panel"
  }
]
Settings
{
  "theme": "auto",
  "show_tab_close_buttons_on_left": true,
  "font_size": 12,
  "ignored_packages":
  [
  	"Vintage",
  ],
  "open_externally_patterns": [
  "*.jpg",
  "*.jpeg",
  "*.png",
  "*.gif",
  "*.zip",
  "*.pdf"
  ],

  "dark_theme": "Default Dark.sublime-theme",
  "light_theme": "Default Dark.sublime-theme",
}
Package Control
  • A File Icon
  • BracketHighlighter
  • Carbon
  • LSP (+ copilot)
  • Non Text Files
  • Package Control
  • Terminus
macOS Kurzbefehle

Terminal hier öffnen & Open in Sublime Text (OneDrive)
App-Tastaturkurzbefehle und Dienste

Enable uBlock Origin on Chrome
  defaults write com.google.Chrome.plist ExtensionManifestV2Availability -int 2

Disable

defaults delete com.google.Chrome.plist ExtensionManifestV2Availability

@Wrestor
Copy link
Author

Wrestor commented Apr 25, 2025

All installed applications as of 25.04.2025
ChatGPT
Microsoft Excel
Microsoft Word
WhatsApp
Sky
GMX Mail
Aktien
App Store
Automator
Bücher
Digitale Bilder
Erinnerungen
FaceTime
Fotos
Freeform
Home
Image Playground
iPhone-Synchronisierung
Kalender
Karten
Kontakte
Kurzbefehle
Launchpad
Lexikon
Mail
Mission Control
Musik
Nachrichten
Notizen
Notizzettel
Passwörter
Photo Booth
Podcasts
QuickTime Player
Rechner
Schach
Schriftsammlung
Siri
Sprachmemos
System­einstellungen
TextEdit
Time Machine
Tipps
TV
Uhr
Vorschau
Wetter
Wo ist?
CotEditor
Safari
Subler
MKVToolNix-91.0
AusweisApp
Duplicate File Finder
AnyDesk
Transmission
Visual Studio Code
Mp3tag
Keka
Sublime Text
Discord
Movist Pro
DaisyDisk
Syntax Highlight
Google Chrome
Bartender 5
Hot
MediaInfo
HandBrake
Spotify
Shottr
HoudahSpot
Ayumu
Raycast
Quartz Debug
MEGAsync
IINA
AppCleaner
SilentKnight
Oceanhorn 2
Latest
Tiles
PasteBox
TempBox
F1™ 2017
Dienstprogramme

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment