Skip to content

Instantly share code, notes, and snippets.

@gabeio
Last active December 20, 2015 00:49
Show Gist options
  • Save gabeio/6044626 to your computer and use it in GitHub Desktop.
Save gabeio/6044626 to your computer and use it in GitHub Desktop.
sudo -v
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist #disable spotlight
sudo chmod 600 /System/Library/CoreServices/Search.bundle/Contents/MacOS/Search #disable spotlight
defaults write -g ApplePressAndHoldEnabled -bool false #disable accent popup ?(maybe)
defaults write NSGlobalDomain KeyRepeat -int 0 #faster keyrepeat ?(maybe)
#defaults write com.apple.finder AppleShowAllFiles TRUE #show hidden files
defaults write com.apple.dashboard mcx-disabled -boolean YES #KILL DASHBOARD <3333
killall Dock
#TALK!
say <x>
defaults write NSGlobalDomain NSQuitAlwaysKeepsWindows -bool false #kill resume windows "feature"
defaults write NSGlobalDomain AppleKeyboardUIMode -int 3 #full keyboard always
defaults write com.apple.screensaver askForPassword -int 1 #ask for password on screen saver
defaults write com.apple.screensaver askForPasswordDelay -int 0 #delay 0 for ask password
defaults write com.apple.finder _FXShowPosixPathInTitle -bool true #show full path in finder title
defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false #disable annoying "are you sure you want to change file extention?" -.- -.- -.-
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true #don't write .DS_Store to network drives
#Stop verifying disk images >.<
defaults write com.apple.frameworks.diskimages skip-verify -bool true
defaults write com.apple.frameworks.diskimages skip-verify-locked -bool true
defaults write com.apple.frameworks.diskimages skip-verify-remote -bool true
chflags nohidden ~/Library #show library
defaults write com.apple.dock tilesize -int 36 #dock icons = 36px
defaults write com.apple.DiskUtility DUDebugMenuEnabled -bool true #disk util debug menu
defaults write com.apple.mail AddressesIncludeNameOnPasteboard -bool false #copy foo@bar.com instead of Foo Bar foo@bar.com
defaults write com.apple.terminal StringEncodings -array 4 #UTF-8 ONLY
sqlite3 ~/Library/Preferences/com.apple.LaunchServices.QuarantineEventsV* 'delete from LSQuarantineEvent' #delete download history
defaults write com.apple.LaunchServices LSQuarantine -bool NO #disable download history tracking
#git log nice
git config --global alias.lg "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative"
#restart apps
for app in Finder Dock Mail Safari iTunes iCal Address\ Book SystemUIServer Twitter; do
killall "$app" > /dev/null 2>&1
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment