Skip to content

Instantly share code, notes, and snippets.

@beardcoder
Last active December 14, 2021 19:45
Show Gist options
  • Select an option

  • Save beardcoder/d509fa70c96505925f0d9f894d5765bd to your computer and use it in GitHub Desktop.

Select an option

Save beardcoder/d509fa70c96505925f0d9f894d5765bd to your computer and use it in GitHub Desktop.

Revisions

  1. beardcoder revised this gist Mar 17, 2018. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -61,8 +61,8 @@ Disable the standard delay in rendering a Web page.
    defaults write com.apple.Safari WebKitInitialTimedLayoutDelay 0.25

    # The keyboard react faster to keystrokes (not equally useful for everyone
    defaults write -g InitialKeyRepeat -int 10
    defaults write -g KeyRepeat -int 1
    defaults write -g InitialKeyRepeat -int 20
    defaults write -g KeyRepeat -int 2



  2. beardcoder revised this gist Mar 17, 2018. 1 changed file with 70 additions and 4 deletions.
    74 changes: 70 additions & 4 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,71 @@
    # Add spacer to dock
    defaults write com.apple.dock persistent-apps -array-add '{tile-data={}; tile-type="spacer-tile";}'
    # Screenshots
    mkdir ~/Pictures/Screenshots/
    defaults write com.apple.screencapture location ~/Pictures/Screenshots/

    # Add spacer to document dock
    defaults write com.apple.dock persistent-others -array-add '{tile-data={}; tile-type="spacer-tile";}'
    # Disable cloude Save
    defaults write NSGlobalDomain NSDocumentSaveNewDocumentsToCloud -bool false

    #Use current directory as default search scope in Finder
    defaults write com.apple.finder FXDefaultSearchScope -string "SCcf"

    #Enable Safari’s debug menu
    defaults write com.apple.Safari IncludeInternalDebugMenu -bool true

    #Do not create .DS_Store files on network volumes
    defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true

    # Expand save panel by default
    defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true

    # Disable the “Are you sure you want to open this application?” dialog
    defaults write com.apple.LaunchServices LSQuarantine -bool false

    # Enable subpixel font rendering on non-Apple LCDs
    defaults write NSGlobalDomain AppleFontSmoothing -int 2

    # 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


    # 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

    # Hot corners
    # Top left screen corner → Mission Control
    defaults write com.apple.dock wvous-tl-corner -int 2
    defaults write com.apple.dock wvous-tl-modifier -int 0
    # Top right screen corner → Desktop
    defaults write com.apple.dock wvous-tr-corner -int 4
    defaults write com.apple.dock wvous-tr-modifier -int 0
    # Bottom left screen corner → Start screen saver
    defaults write com.apple.dock wvous-bl-corner -int 5
    defaults write com.apple.dock wvous-bl-modifier -int 0

    # Add a spacer to the left side of the Dock (where the applications are)
    #defaults write com.apple.dock persistent-apps -array-add '{tile-data={}; tile-type="spacer-tile";}'
    # Add a spacer to the right side of the Dock (where the Trash is)
    #defaults write com.apple.dock persistent-others -array-add '{tile-data={}; tile-type="spacer-tile";}'

    # Remove useless icons from Safari’s bookmarks bar
    defaults write com.apple.Safari ProxiesInBookmarksBar "()"

    # Make all animations faster that are used by Mission Control.
    defaults write com.apple.dock expose-animation-duration -float 0.1

    Disable the standard delay in rendering a Web page.
    defaults write com.apple.Safari WebKitInitialTimedLayoutDelay 0.25

    # The keyboard react faster to keystrokes (not equally useful for everyone
    defaults write -g InitialKeyRepeat -int 10
    defaults write -g KeyRepeat -int 1



    # Enable all settings
    for app in Finder Dock Mail Safari iTunes iCal Address\ Book SystemUIServer; do killall "$app" > /dev/null 2>&1; done
    echo "Done. Note that some of these changes require a logout/restart to take effect."
  3. beardcoder created this gist Oct 3, 2017.
    5 changes: 5 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    # Add spacer to dock
    defaults write com.apple.dock persistent-apps -array-add '{tile-data={}; tile-type="spacer-tile";}'

    # Add spacer to document dock
    defaults write com.apple.dock persistent-others -array-add '{tile-data={}; tile-type="spacer-tile";}'