Skip to content

Instantly share code, notes, and snippets.

@somecuitears
Last active April 3, 2017 04:58
Show Gist options
  • Save somecuitears/f25d1f4c38049729f783ac1eb671e6e9 to your computer and use it in GitHub Desktop.
Save somecuitears/f25d1f4c38049729f783ac1eb671e6e9 to your computer and use it in GitHub Desktop.
Usefull macOS tweaks

Hidden Files and Folders

Open terminal and paste following codes to:

Hide files or folder

chflags hidden <file/folder>

Show Hidden files and folders

defaults write com.apple.finder AppleShowAllFiles YES; killall Finder

Hide Hidden files and folders

defaults write com.apple.finder AppleShowAllFiles NO; killall Finder

Change Screenshot save location

defaults write com.apple.screencapture location \User\...;

killall SystemUIServer

iPhone like power Chime

Enable Chime

defaults write com.apple.PowerChime ChimeOnAllHardware -bool TRUE; open /System/Library/CoreServices/PowerChime.app &

Disable Chime

defaults write com.apple.PowerChime ChimeOnAllHardware -bool FALSE; killall PowerChime

Terminal History

Terminal commands history that contained the word "killall"

history | grep killall

Security

When .app becomes corrupt when its not really corrupt

sudo spctl --master-enable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment