Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Disable the sound effects on boot
- sudo nvram SystemAudioVolume=" "
- # Set sidebar icon size to small
- defaults write NSGlobalDomain NSTableViewDefaultSizeMode -int 1
- # Always show scrollbars
- # Possible values: `WhenScrolling`, `Automatic` and `Always`
- defaults write NSGlobalDomain AppleShowScrollBars -string "WhenScrolling"
- # Disable automatic termination of inactive apps
- defaults write -g NSDisableAutomaticTermination -bool yes
- # Disable opening and closing window animations
- defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool NO
- defaults write -g NSScrollViewRubberbanding -int 0
- # No blur
- defaults -currentHost write -globalDomain AppleFontSmoothing -int 1
- # Disable press-and-hold for keys in favor of key repeat
- defaults write -g ApplePressAndHoldEnabled -bool false
- # Set a blazingly fast keyboard repeat rate
- defaults write NSGlobalDomain KeyRepeat -int 0
- # Automatically illuminate built-in keyboard in low light
- defaults write com.apple.BezelServices kDim -bool true
- # Turn off keyboard illumination when computer is not used for 5 minutes
- defaults write com.apple.BezelServices kDimTime -int 300
- # Increase window resize speed for Cocoa applications
- defaults write NSGlobalDomain NSWindowResizeTime -float 0.001
- # Expand save panel by default
- defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true
- # Expand print panel by default
- defaults write NSGlobalDomain PMPrintingExpandedStateForPrint -bool true
- # Save to disk (not to iCloud) by default
- #defaults write NSGlobalDomain NSDocumentSaveNewDocumentsToCloud -bool false
- # Disable the “Are you sure you want to open this application?” dialog
- defaults write com.apple.LaunchServices LSQuarantine -bool false
- # Disable Resume system-wide
- defaults write NSGlobalDomain NSQuitAlwaysKeepsWindows -bool false
- # Set Help Viewer windows to non-floating mode
- defaults write com.apple.helpviewer DevMode -bool true
- # Fix for the ancient UTF-8 bug in QuickLook (http://mths.be/bbo)
- # Commented out, as this is known to cause problems in various Adobe apps :(
- # See https://github.com/mathiasbynens/dotfiles/issues/237
- #echo "0x08000100:0" > ~/.CFUserTextEncoding
- # Reveal IP address, hostname, OS version, etc. when clicking the clock
- # in the login window
- sudo defaults write /Library/Preferences/com.apple.loginwindow AdminHostInfo HostName
- # Disable smart quotes as they’re annoying when typing code
- defaults write NSGlobalDomain NSAutomaticQuoteSubstitutionEnabled -bool false
- # Disable smart dashes as they’re annoying when typing code
- defaults write NSGlobalDomain NSAutomaticDashSubstitutionEnabled -bool false
- # Disable local Time Machine snapshots
- sudo tmutil disablelocal
- # Disable hibernation
- sudo pmset -a hibernatemode 0
- # Remove the sleep image file to save disk space
- sudo rm /var/vm/sleepimage
- sudo ln -s /dev/null /var/vm/sleepimage
- # Disable “natural” (Lion-style) scrolling
- defaults write NSGlobalDomain com.apple.swipescrolldirection -bool false
- # Enable full keyboard access for all controls
- # (e.g. enable Tab in modal dialogs)
- defaults write NSGlobalDomain AppleKeyboardUIMode -int 3
- defaults write "Apple Global Domain" "com.apple.keyboard.fnState" "1" ## F1 F2 etc
- defaults write "Apple Global Domain" "com.apple.keyboard.fnState" "0" ## Brightness/Media
- # Disable auto-correct
- defaults write NSGlobalDomain NSAutomaticSpellingCorrectionEnabled -bool false
- # Require password immediately after sleep or screen saver begins
- defaults write com.apple.screensaver askForPassword -int 1
- defaults write com.apple.screensaver askForPasswordDelay -int 0
- # Save screenshots to the appropriate place
- defaults write com.apple.screencapture location ~/Pictures/Screenshots/
- # Disable shadow in screenshots
- defaults write com.apple.screencapture disable-shadow -bool true
- #defaults write com.apple.desktop Background '{default = {ImageFilePath = "~/.config/desktop/gumi.jpg"; };}'
- # Finder: disable window animations and Get Info animations
- defaults write com.apple.finder DisableAllAnimations -bool true
- # Do not show icons for hard drives, servers, and removable media on the desktop
- defaults write com.apple.finder ShowExternalHardDrivesOnDesktop -bool false
- defaults write com.apple.finder ShowHardDrivesOnDesktop -bool false
- defaults write com.apple.finder ShowMountedServersOnDesktop -bool false
- defaults write com.apple.finder ShowRemovableMediaOnDesktop -bool false
- # Finder: show all filename extensions
- defaults write NSGlobalDomain AppleShowAllExtensions -bool true
- # Finder: show path bar
- defaults write com.apple.finder ShowPathbar -bool true
- # Display full POSIX path as Finder window title
- defaults write com.apple.finder _FXShowPosixPathInTitle -bool true
- # When performing a search, search the current folder by default
- defaults write com.apple.finder FXDefaultSearchScope -string "SCcf"
- # Disable the warning when changing a file extension
- defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false
- # Enable spring loading for directories
- defaults write NSGlobalDomain com.apple.springing.enabled -bool true
- # Remove the spring loading delay for directories
- defaults write NSGlobalDomain com.apple.springing.delay -float 0
- # Disable disk image verification
- 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
- # Use list view in all Finder windows by default
- # Four-letter codes for the other view modes: `icnv`, `clmv`, `Flwv`
- defaults write com.apple.finder FXPreferredViewStyle -string "Nlsv"
- # Disable the warning before emptying the Trash
- defaults write com.apple.finder WarnOnEmptyTrash -bool false
- # Empty Trash securely by default
- defaults write com.apple.finder EmptyTrashSecurely -bool true
- # Expand the following File Info panes:
- # “General”, “Open with”, and “Sharing & Permissions”
- defaults write com.apple.finder FXInfoPanesExpanded -dict \
- General -bool true \
- OpenWith -bool true \
- Privileges -bool true
- # Automatically hide and show the Dock
- defaults write com.apple.dock autohide -bool true
- # Hide dock
- defaults write com.apple.dock autohide-delay -float 9999999
- # Minimize windows into their application’s icon
- defaults write com.apple.dock minimize-to-application -bool true
- # Pin dock into corner
- defaults write com.apple.dock pinning -string start
- # Enable spring loading for all Dock items
- defaults write com.apple.dock enable-spring-load-actions-on-all-items -bool true
- # Don’t animate opening applications from the Dock
- defaults write com.apple.dock launchanim -bool false
- # Speed up Mission Control animations
- defaults write com.apple.dock expose-animation-duration -float 0.1
- # Don’t group windows by application in Mission Control
- # (i.e. use the old Exposé behavior instead)
- defaults write com.apple.dock expose-group-by-app -bool false
- # Disable Dashboard
- defaults write com.apple.dashboard mcx-disabled -bool true
- # Don’t show Dashboard as a Space
- defaults write com.apple.dock dashboard-in-overlay -bool true
- # Don’t automatically rearrange Spaces based on most recent use
- defaults write com.apple.dock mru-spaces -bool false
- #Disable stupid power button behavior on laptops
- defaults write com.apple.loginwindow PowerButtonSleepsSystem -bool no
- launchctl unload -w /System/Library/LaunchAgents/com.apple.notificationcenterui.plist
- launchctl unload -w /System/Library/LaunchAgents/com.apple.helpd.plist
- launchctl unload -w /System/Library/LaunchAgents/com.apple.imagent.plist
- launchctl unload -w /System/Library/LaunchAgents/com.apple.gamed.plist
- #launchctl load -w ~/Library/LaunchAgents/local.killshadows.plist
- #launchctl load -w ~/Library/LaunchAgents/local.homeback.plist
- launchctl load -w ~/Library/LaunchAgents/com.flexget.plist
- defaults write com.apple.LaunchServices LSQuarantine -bool NO
- # Disable Stoplight
- #sudo mdutil -a -i off
- #sudo chmod 600 /System/Library/CoreServices/Search.bundle/Contents/MacOS/Search
- #killall SystemUIServer
- # Do not throttle mobile CPU
- #sudo rm -rf /System/Library/Extensions/IOPlatformPluginFMillyly.kext
- chflags nohidden Library
- chflags hidden Public
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement