Skip to content

Instantly share code, notes, and snippets.

@ejfox
Created January 5, 2024 17:27
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 ejfox/afd94b193a00645e34fc5030a125758a to your computer and use it in GitHub Desktop.
Save ejfox/afd94b193a00645e34fc5030a125758a to your computer and use it in GitHub Desktop.
Sets screenshot folder on OS X to ~/screenshots
#!/bin/bash
# Create the directory if it doesn't exist
mkdir -p ~/screenshots
# Set the default location for screenshots
defaults write com.apple.screencapture location ~/screenshots
# Apply the changes by restarting the SystemUIServer
killall SystemUIServer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment