Last active
August 10, 2018 21:21
-
-
Save kwokhou/9ef6a2fae11f2d79d7711bef5bd74342 to your computer and use it in GitHub Desktop.
Better macOS defaults
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Turn on / off the no so "natural" mouse scroll direction | |
defaults write -g com.apple.swipescrolldirection -bool NO | |
# Auto hide dock | |
defaults write com.apple.dock autohide -bool YES | |
# Use `sudo mdutil -i off "/Volumes/foo"` to stop indexing any volume. | |
sudo defaults write /.Spotlight-V100/VolumeConfiguration Exclusions -array "/Volumes" | |
# Enable Spotlight indexing with | |
sudo mdutil -a -i on | |
# Use plain text mode for new TextEdit documents | |
defaults write com.apple.TextEdit RichText -int 0 | |
# Open and save files as UTF-8 in TextEdit | |
defaults write com.apple.TextEdit PlainTextEncoding -int 4 | |
defaults write com.apple.TextEdit PlainTextEncodingForWrite -int 4 | |
# Show full path in finder | |
defaults write com.apple.finder _FXShowPosixPathInTitle -bool false; killall Finder |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment