Skip to content

Instantly share code, notes, and snippets.

@chrisbolin
Last active February 25, 2026 11:21
Show Gist options
  • Select an option

  • Save chrisbolin/b834b07def54511473093054fd8b0200 to your computer and use it in GitHub Desktop.

Select an option

Save chrisbolin/b834b07def54511473093054fd8b0200 to your computer and use it in GitHub Desktop.
Clean up macOS dock
# just the basics (friendly, nonconfrontational)
defaults write com.apple.dock persistent-apps -array && \
defaults write com.apple.dock persistent-others -array && \
killall Dock;
# how I like it (wired, wild)
defaults write com.apple.dock persistent-apps -array && \
defaults write com.apple.dock persistent-others -array && \
defaults write com.apple.dock autohide -bool true && \
defaults write com.apple.dock magnification -bool true && \
defaults write com.apple.dock orientation -string left && \
defaults write com.apple.dock largesize -float 90 && \
defaults write com.apple.dock tilesize -float 50 && \
killall Dock;
# factory reset (uninspired, tired)
defaults delete com.apple.dock; killall Dock;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment