Skip to content

Instantly share code, notes, and snippets.

@phaberest
Last active October 17, 2018 19:42
Show Gist options
  • Select an option

  • Save phaberest/871945c77b7b73f6c05bfeff2129cd29 to your computer and use it in GitHub Desktop.

Select an option

Save phaberest/871945c77b7b73f6c05bfeff2129cd29 to your computer and use it in GitHub Desktop.

Revisions

  1. phaberest revised this gist Oct 17, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion mac_tricks.sh
    Original file line number Diff line number Diff line change
    @@ -4,7 +4,7 @@ defaults write com.apple.dock autohide-time-modifier -float 0.4
    killall Dock

    # Set a blazingly fast keyboard repeat rate
    defaults write NSGlobalDomain KeyRepeat -int 1
    defaults write NSGlobalDomain KeyRepeat -int 2
    defaults write NSGlobalDomain InitialKeyRepeat -int 10

    # Screeshots in jpg
  2. phaberest revised this gist Oct 15, 2018. 1 changed file with 24 additions and 0 deletions.
    24 changes: 24 additions & 0 deletions mac_tricks.sh
    Original file line number Diff line number Diff line change
    @@ -19,3 +19,27 @@ defaults write NSGlobalDomain PMPrintingExpandedStateForPrint2 -bool true

    # Font submixel smooth on all LCD
    defaults write NSGlobalDomain AppleFontSmoothing -int 1

    # Safari Privacy: don’t send search queries to Apple
    defaults write com.apple.Safari UniversalSearchEnabled -bool false
    defaults write com.apple.Safari SuppressSearchSuggestions -bool true

    # Set Safari’s home page to `about:blank` for faster loading
    defaults write com.apple.Safari HomePage -string "about:blank"

    # Enable “Do Not Track”
    defaults write com.apple.Safari SendDoNotTrackHTTPHeader -bool true

    # Update extensions automatically
    defaults write com.apple.Safari InstallExtensionUpdatesAutomatically -bool true


    ###############################################################################
    # Time Machine #
    ###############################################################################

    # Prevent Time Machine from prompting to use new hard drives as backup volume
    defaults write com.apple.TimeMachine DoNotOfferNewDisksForBackup -bool true

    # Disable local Time Machine backups
    hash tmutil &> /dev/null && sudo tmutil disablelocal
  3. phaberest revised this gist Oct 15, 2018. 1 changed file with 14 additions and 1 deletion.
    15 changes: 14 additions & 1 deletion mac_tricks.sh
    Original file line number Diff line number Diff line change
    @@ -5,4 +5,17 @@ killall Dock

    # Set a blazingly fast keyboard repeat rate
    defaults write NSGlobalDomain KeyRepeat -int 1
    defaults write NSGlobalDomain InitialKeyRepeat -int 10
    defaults write NSGlobalDomain InitialKeyRepeat -int 10

    # Screeshots in jpg
    defaults write com.apple.screencapture type -string "jpg"
    # Disable shadows
    defaults write com.apple.screencapture disable-shadow -bool true
    # Expand save and print panels by default
    defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true
    defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode2 -bool true
    defaults write NSGlobalDomain PMPrintingExpandedStateForPrint -bool true
    defaults write NSGlobalDomain PMPrintingExpandedStateForPrint2 -bool true

    # Font submixel smooth on all LCD
    defaults write NSGlobalDomain AppleFontSmoothing -int 1
  4. phaberest revised this gist Oct 15, 2018. 2 changed files with 8 additions and 4 deletions.
    4 changes: 0 additions & 4 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -1,4 +0,0 @@
    # Reduce dock show/hide time
    defaults write com.apple.dock autohide-delay -int 0
    defaults write com.apple.dock autohide-time-modifier -float 0.4
    killall Dock
    8 changes: 8 additions & 0 deletions mac_tricks.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    # Reduce dock show/hide time
    defaults write com.apple.dock autohide-delay -int 0
    defaults write com.apple.dock autohide-time-modifier -float 0.4
    killall Dock

    # Set a blazingly fast keyboard repeat rate
    defaults write NSGlobalDomain KeyRepeat -int 1
    defaults write NSGlobalDomain InitialKeyRepeat -int 10
  5. phaberest created this gist Oct 15, 2018.
    4 changes: 4 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    # Reduce dock show/hide time
    defaults write com.apple.dock autohide-delay -int 0
    defaults write com.apple.dock autohide-time-modifier -float 0.4
    killall Dock