Skip to content

Instantly share code, notes, and snippets.

@samir
Created November 27, 2010 17:21
Show Gist options
  • Save samir/718089 to your computer and use it in GitHub Desktop.
Save samir/718089 to your computer and use it in GitHub Desktop.
Mac OS X Terminal Tips
# Make hidden Dock icons transparent
defaults write com.apple.Dock showhidden -bool YES
killall Dock
# Change the location of snapped screenshots
mkdir -p ~/Pictures/Screnshots
defaults write com.apple.screencapture location ~/Pictures/Screenshots
killall Dock
# Change your current screenshot format
defaults write com.apple.screencapture type jpg
# change jpg by another format: jpg,png,tiff,jpg,pdf etc
# Needs to logout/login
# Enable "path view" in Finder
defaults write com.apple.finder _FXShowPosixPathInTitle -bool YES
killall Dock
# Gradient highlights for Stacks
defaults write com.apple.dock mouse-over-hilte-stack -boolean YES
killall Dock
# Add recent applications as a Stack on Dock
defaults write com.apple.dock persistent-others -array-add '{ "tile-data" = { "list-type" = 1; }; "tile-type" = "recents-tile"; }'
killall Dock
# Make your Screensaver a desktop background (useless)
/System/Library/Frameworks/ScreenSaver.framework/Resources/ScreenSaverEngine.app/Contents/MacOS/ScreenSaverEngine -background
# Screencapture
screencapture -iW ~/Desktop/screen.jpg
# @credits: http://www.tuaw.com/category/terminal-tips/
# Disable Dashboard
defaults write com.apple.dashboard mcx-disabled -boolean YES
killall Dock
# Enable Dashboard
defaults write com.apple.dashboard mcx-disabled -boolean NO
killall Dock
# @credits: http://galengidman.com/2012/07/14/disable-mac-dashboard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment