Skip to content

Instantly share code, notes, and snippets.

@tobyspark
Last active December 29, 2021 15:47
Show Gist options
  • Save tobyspark/fa57e1c663bc5d799d2a to your computer and use it in GitHub Desktop.
Save tobyspark/fa57e1c663bc5d799d2a to your computer and use it in GitHub Desktop.

Revisions

  1. tobyspark revised this gist May 4, 2014. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions tbz.osx.config
    Original file line number Diff line number Diff line change
    @@ -12,6 +12,7 @@

    # Dropbox
    # Chrome
    # Github
    # Xcode Graphics Utilities
    # Royal Apple Mail

  2. tobyspark revised this gist May 4, 2014. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions tbz.osx.config
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    ### Confiure a Mac OS X machine to my taste
    ### Confiure a Mac OS X machine for my taste
    ### Toby Harris - http://tobyz.net / http://sparklive.net

    ### App Store
    @@ -159,8 +159,8 @@ defaults write com.apple.TextEdit NSFontSize -int 13
    ### Terminal

    # White on slightly translucent black
    # - Prefs > Settings > Default: Pro
    # - Prefs > On startup: Pro
    defaults write com.apple.Terminal "Default Window Settings" -string "Pro"
    defaults write com.apple.Terminal "Startup Window Settings" -string "Pro"

    ### Disk Utility

  3. tobyspark revised this gist May 4, 2014. 1 changed file with 20 additions and 8 deletions.
    28 changes: 20 additions & 8 deletions tbz.osx.config
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    ### Confiure a Mac OS X machine for my taste
    ### Confiure a Mac OS X machine to my taste
    ### Toby Harris - http://tobyz.net / http://sparklive.net

    ### App Store
    @@ -23,6 +23,9 @@ defaults write com.apple.dashboard mcx-disabled -boolean YES
    # Disable Time Machine dialog when external drives mount
    defaults write com.apple.TimeMachine DoNotOfferNewDisksForBackup -bool YES

    # Select text in Quick Look
    defaults write com.apple.finder QLEnableTextSelection -bool TRUE

    # Show the ~/Library folder
    chflags nohidden ~/Library

    @@ -47,18 +50,24 @@ defaults write com.apple.finder FXDefaultSearchScope -string "SCcf"
    # Avoid creating .DS_Store files on network volumes
    defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true

    # Disable the warning when changing a file extension
    defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false

    ### System Preferences > Desktop

    # Translucent menu bar
    # - untick
    # Disable menu bar transparency
    defaults write -g AppleEnableMenuBarTransparency -bool false

    ### System Preferences > Mission Control

    # Hot Corners
    # - BL: screensaver, BR: display off
    defaults write com.apple.Dock wvous-bl-corner -int 5
    defaults write com.apple.Dock wvous-bl-modifier -int 0;
    defaults write com.apple.Dock wvous-br-corner -int 10;
    defaults write com.apple.Dock wvous-br-modifier -int 0;

    # Displays have separate Spaces
    # - Untick
    defaults write com.apple.spaces spans-displays -bool true

    ### System Preferences > Dock

    @@ -80,7 +89,7 @@ defaults write com.apple.dock orientation -string 'left'
    ### System Preferences > Security

    # General - Require password x after sleep or screen saver begins
    # - 5 secs
    defaults write com.apple.screensaver askForPasswordDelay -int 5

    # Firewall
    # - On
    @@ -113,6 +122,8 @@ sudo pmset womp 1
    ### System Preferences > Mouse

    # Secondary click
    defaults write com.apple.driver.AppleBluetoothMultitouch.mouse MouseButtonMode -string 'TwoButton'
    defaults write com.apple.driver.AppleHIDMouse Button2 -int 1

    # Tracking
    # - 6
    @@ -139,10 +150,11 @@ defaults write com.apple.TextEdit PlainTextEncoding -int 4
    defaults write com.apple.TextEdit PlainTextEncodingForWrite -int 4

    # Display HTML files as HTML code instead of formatted text
    # - tick
    defaults write com.apple.TextEdit IgnoreHTML -bool true

    # Font size
    # - 13
    defaults write com.apple.TextEdit NSFixedPitchFontSize -int 13
    defaults write com.apple.TextEdit NSFontSize -int 13

    ### Terminal

  4. tobyspark created this gist May 4, 2014.
    157 changes: 157 additions & 0 deletions tbz.osx.config
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,157 @@
    ### Confiure a Mac OS X machine for my taste
    ### Toby Harris - http://tobyz.net / http://sparklive.net

    ### App Store

    # Calca
    # Coderunner
    # Dash
    # Xcode

    ### Downloads

    # Dropbox
    # Chrome
    # Xcode Graphics Utilities
    # Royal Apple Mail

    ### OSX

    # Disable dashboard
    defaults write com.apple.dashboard mcx-disabled -boolean YES

    # Disable Time Machine dialog when external drives mount
    defaults write com.apple.TimeMachine DoNotOfferNewDisksForBackup -bool YES

    # Show the ~/Library folder
    chflags nohidden ~/Library

    # Enable AirDrop over Ethernet
    defaults write com.apple.NetworkBrowser BrowseAllInterfaces 1

    # Set Help Viewer windows to non-floating mode
    defaults write com.apple.helpviewer DevMode -bool true

    # 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

    # When performing a search, search the current folder by default
    defaults write com.apple.finder FXDefaultSearchScope -string "SCcf"

    # Avoid creating .DS_Store files on network volumes
    defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true

    ### System Preferences > Desktop

    # Translucent menu bar
    # - untick

    ### System Preferences > Mission Control

    # Hot Corners
    # - BL: screensaver, BR: display off

    # Displays have separate Spaces
    # - Untick

    ### System Preferences > Dock

    # Set the icon size of Dock items to 32 pixels
    defaults write com.apple.dock tilesize -int 32

    # Set the magnified size of Dock items to 48 pixels
    defaults write com.apple.dock largesize -int 48

    # Magnification on
    defaults write com.apple.dock magnification -bool true

    # Automatically hide and show the Dock
    defaults write com.apple.dock autohide -bool true

    # Set Dock to left hand side
    defaults write com.apple.dock orientation -string 'left'

    ### System Preferences > Security

    # General - Require password x after sleep or screen saver begins
    # - 5 secs

    # Firewall
    # - On

    ### System Preferences > Energy Saver

    # Disable screensaver
    defaults write com.apple.screensaver idleTime -int 0
    defaults -currentHost write com.apple.screensaver idleTime -int 0

    # Disable system sleep
    sudo pmset sleep 0

    # Disable display sleep
    sudo pmset displaysleep 0

    # Enable wake on ethernet
    sudo pmset womp 1

    ### System Preferences > Spotlight

    # Search Results
    # - Folders above documents

    ### System Preferences > Keyboard

    # Show Keyboard & Character Viewers in menu bar
    # - tick

    ### System Preferences > Mouse

    # Secondary click

    # Tracking
    # - 6

    ### Users & Groups

    # Avatar

    # Show fast user switching menu as
    # - Tick
    # - Full Name

    ### Text Edit

    # how to get blank document on start?

    # Use plain text mode for new documents
    defaults write com.apple.TextEdit RichText -int 0

    # Open files as UTF-8
    defaults write com.apple.TextEdit PlainTextEncoding -int 4

    # Save files as UTF-8
    defaults write com.apple.TextEdit PlainTextEncodingForWrite -int 4

    # Display HTML files as HTML code instead of formatted text
    # - tick

    # Font size
    # - 13

    ### Terminal

    # White on slightly translucent black
    # - Prefs > Settings > Default: Pro
    # - Prefs > On startup: Pro

    ### Disk Utility

    # Enable the debug menu in Disk Utility
    defaults write com.apple.DiskUtility DUDebugMenuEnabled -bool true
    defaults write com.apple.DiskUtility advanced-image-options -bool true