Skip to content

Instantly share code, notes, and snippets.

@DorkNstein
Last active March 16, 2018 17:18
Show Gist options
  • Save DorkNstein/de3eb83db58e030664d42122369a0428 to your computer and use it in GitHub Desktop.
Save DorkNstein/de3eb83db58e030664d42122369a0428 to your computer and use it in GitHub Desktop.
Mac Terminal Tricks
# Tip 1:
zip -e [new file name].zip [file path]
# Tip 2:
defaults write -g PMPrintingExpandedStateForPrint -bool TRUE
# Reverse:
defaults write -g PMPrintingExpandedStateForPrint -bool FALSE
# Tip 3:
defaults write com.apple.dashboard mcx-disabled -boolean TRUE; killall Dock
# Reverse:
defaults write com.apple.dashboard mcx-disabled -boolean FALSE; killall Dock
# Tip 4a:
defaults write com.apple.dock autohide-delay -float 0; killall Dock
# Reverse
defaults write com.apple.dock autohide-delay -float 1; killall Dock
# Tip 4b:
defaults write com.apple.dock autohide-time-modifier -float 0; killall Dock
# Reverse
defaults delete com.apple.dock autohide-time-modifier; killall Dock
# Tip 5:
defaults write com.apple.screencapture disable-shadow -bool TRUE; killall SystemUIServer
# Reverse
defaults write com.apple.screencapture disable-shadow -bool FALSE; killall SystemUIServer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment