Skip to content

Instantly share code, notes, and snippets.

@shinkbr
Last active December 14, 2022 18:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shinkbr/39e56c39be53b19aea41 to your computer and use it in GitHub Desktop.
Save shinkbr/39e56c39be53b19aea41 to your computer and use it in GitHub Desktop.
Configure the macOS dock
#!/usr/bin/env bash
# Configure the macOS dock
defaults delete com.apple.dock
killall Dock
sleep 5
defaults write com.apple.dock autohide -bool yes
defaults write com.apple.dock minimize-to-application -bool yes
defaults write com.apple.dock persistent-apps -array
defaults write com.apple.dock show-recents -bool no
defaults write com.apple.dock size-immutable -bool yes
defaults write com.apple.dock persistent-apps -array
killall Dock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment