Changed Mac setup to suit my preferences.
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
This commit is contained in:
parent
896c47d0f8
commit
b20e7d9912
@ -1,15 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Installs Chrome and makes it default browser
|
|
||||||
|
|
||||||
|
|
||||||
source "$HOME/dotfiles/includes/installer.sh"
|
source "$HOME/dotfiles/includes/installer.sh"
|
||||||
|
|
||||||
|
install_cleanup
|
||||||
# Install Chrome
|
|
||||||
install_dmg_app "https://dl.google.com/chrome/mac/stable/GGRO" "googlechrome.dmg" "Google Chrome" "Google Chrome"
|
|
||||||
# Make it default browser (it will not run Chrome)
|
|
||||||
open -a "Google Chrome" --args --make-default-browser
|
|
||||||
|
|
||||||
|
|
||||||
install_cleanup
|
|
||||||
|
@ -6,11 +6,7 @@
|
|||||||
sudo -v
|
sudo -v
|
||||||
|
|
||||||
. stuff.sh
|
. stuff.sh
|
||||||
. quicklook.sh
|
|
||||||
. bash.sh
|
. bash.sh
|
||||||
. consolas.sh
|
. consolas.sh
|
||||||
. imgo.sh
|
|
||||||
. osx.sh
|
. osx.sh
|
||||||
. sublime-settings.sh
|
|
||||||
. sublime-packages.sh
|
|
||||||
. apps.sh
|
. apps.sh
|
||||||
|
@ -1,13 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# Installs imgo CLI image optimizer
|
|
||||||
# https://github.com/imgo/imgo
|
|
||||||
|
|
||||||
|
|
||||||
brew install exiftool imagemagick optipng libjpeg gifsicle
|
|
||||||
|
|
||||||
formulas='pngout.rb defluff.rb cryopng.rb imgo.rb'
|
|
||||||
for package in $formulas
|
|
||||||
do
|
|
||||||
brew install "https://raw.github.com/imgo/imgo-tools/master/Formula/"$package
|
|
||||||
done
|
|
110
setup/osx.sh
110
setup/osx.sh
@ -27,8 +27,8 @@ while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
|
|||||||
defaults write NSGlobalDomain AppleEnableMenuBarTransparency -bool false
|
defaults write NSGlobalDomain AppleEnableMenuBarTransparency -bool false
|
||||||
|
|
||||||
# Menu bar: hide remaining battery time (on pre-10.8); hide percentage
|
# Menu bar: hide remaining battery time (on pre-10.8); hide percentage
|
||||||
defaults write com.apple.menuextra.battery ShowPercent -string "NO"
|
#defaults write com.apple.menuextra.battery ShowPercent -string "NO"
|
||||||
defaults write com.apple.menuextra.battery ShowTime -string "NO"
|
#defaults write com.apple.menuextra.battery ShowTime -string "NO"
|
||||||
|
|
||||||
# Menu bar: hide the useless Time Machine and Volume icons
|
# Menu bar: hide the useless Time Machine and Volume icons
|
||||||
defaults write com.apple.systemuiserver menuExtras -array "/System/Library/CoreServices/Menu Extras/Bluetooth.menu" "/System/Library/CoreServices/Menu Extras/AirPort.menu" "/System/Library/CoreServices/Menu Extras/Battery.menu" "/System/Library/CoreServices/Menu Extras/Clock.menu"
|
defaults write com.apple.systemuiserver menuExtras -array "/System/Library/CoreServices/Menu Extras/Bluetooth.menu" "/System/Library/CoreServices/Menu Extras/AirPort.menu" "/System/Library/CoreServices/Menu Extras/Battery.menu" "/System/Library/CoreServices/Menu Extras/Clock.menu"
|
||||||
@ -38,7 +38,7 @@ defaults write com.apple.systemuiserver menuExtras -array "/System/Library/CoreS
|
|||||||
|
|
||||||
# Disable smooth scrolling
|
# Disable smooth scrolling
|
||||||
# (Uncomment if you’re on an older Mac that messes up the animation)
|
# (Uncomment if you’re on an older Mac that messes up the animation)
|
||||||
#defaults write NSGlobalDomain NSScrollAnimationEnabled -bool false
|
defaults write NSGlobalDomain NSScrollAnimationEnabled -bool false
|
||||||
|
|
||||||
# Disable opening and closing window animations
|
# Disable opening and closing window animations
|
||||||
defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool false
|
defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool false
|
||||||
@ -47,19 +47,19 @@ defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool false
|
|||||||
defaults write NSGlobalDomain NSWindowResizeTime -float 0.001
|
defaults write NSGlobalDomain NSWindowResizeTime -float 0.001
|
||||||
|
|
||||||
# Expand save panel by default
|
# Expand save panel by default
|
||||||
#defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true
|
defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true
|
||||||
|
|
||||||
# Expand print panel by default
|
# Expand print panel by default
|
||||||
#defaults write NSGlobalDomain PMPrintingExpandedStateForPrint -bool true
|
#defaults write NSGlobalDomain PMPrintingExpandedStateForPrint -bool true
|
||||||
|
|
||||||
# Save to disk (not to iCloud) by default
|
# Save to disk (not to iCloud) by default
|
||||||
#defaults write NSGlobalDomain NSDocumentSaveNewDocumentsToCloud -bool false
|
defaults write NSGlobalDomain NSDocumentSaveNewDocumentsToCloud -bool false
|
||||||
|
|
||||||
# Automatically quit printer app once the print jobs complete
|
# Automatically quit printer app once the print jobs complete
|
||||||
defaults write com.apple.print.PrintingPrefs "Quit When Finished" -bool true
|
defaults write com.apple.print.PrintingPrefs "Quit When Finished" -bool true
|
||||||
|
|
||||||
# Disable the “Are you sure you want to open this application?” dialog
|
# Disable the “Are you sure you want to open this application?” dialog
|
||||||
defaults write com.apple.LaunchServices LSQuarantine -bool false
|
#defaults write com.apple.LaunchServices LSQuarantine -bool false
|
||||||
|
|
||||||
# Display ASCII control characters using caret notation in standard text views
|
# Display ASCII control characters using caret notation in standard text views
|
||||||
# Try e.g. `cd /tmp; unidecode "\x{0000}" > cc.txt; open -e cc.txt`
|
# Try e.g. `cd /tmp; unidecode "\x{0000}" > cc.txt; open -e cc.txt`
|
||||||
@ -84,7 +84,7 @@ defaults write com.apple.CrashReporter DialogType -string "none"
|
|||||||
|
|
||||||
# Reveal IP address, hostname, OS version, etc. when clicking the clock
|
# Reveal IP address, hostname, OS version, etc. when clicking the clock
|
||||||
# in the login window
|
# in the login window
|
||||||
#sudo defaults write /Library/Preferences/com.apple.loginwindow AdminHostInfo HostName
|
sudo defaults write /Library/Preferences/com.apple.loginwindow AdminHostInfo HostName
|
||||||
|
|
||||||
# Restart automatically if the computer freezes
|
# Restart automatically if the computer freezes
|
||||||
#systemsetup -setrestartfreeze on
|
#systemsetup -setrestartfreeze on
|
||||||
@ -96,10 +96,10 @@ defaults write com.apple.CrashReporter DialogType -string "none"
|
|||||||
defaults write com.apple.SoftwareUpdate ScheduleFrequency -int 1
|
defaults write com.apple.SoftwareUpdate ScheduleFrequency -int 1
|
||||||
|
|
||||||
# Appearance: Graphite
|
# Appearance: Graphite
|
||||||
defaults write -g AppleAquaColorVariant -int 6
|
#defaults write -g AppleAquaColorVariant -int 6
|
||||||
|
|
||||||
# Highlight color: Blue
|
# Highlight color: Blue
|
||||||
defaults write -g AppleHighlightColor -string '0.709800 0.835300 1.000000'
|
#defaults write -g AppleHighlightColor -string '0.709800 0.835300 1.000000'
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
# Trackpad, mouse, keyboard, Bluetooth accessories, and input #
|
# Trackpad, mouse, keyboard, Bluetooth accessories, and input #
|
||||||
@ -150,23 +150,23 @@ defaults write com.apple.universalaccess closeViewZoomFollowsFocus -bool true
|
|||||||
#defaults write NSGlobalDomain KeyRepeat -int 0
|
#defaults write NSGlobalDomain KeyRepeat -int 0
|
||||||
|
|
||||||
# Don't illuminate built-in MacBook keyboard in low light
|
# Don't illuminate built-in MacBook keyboard in low light
|
||||||
defaults write com.apple.BezelServices kDim -bool false
|
#defaults write com.apple.BezelServices kDim -bool false
|
||||||
# Turn off keyboard illumination when computer is not used for 5 minutes
|
# Turn off keyboard illumination when computer is not used for 5 minutes
|
||||||
defaults write com.apple.BezelServices kDimTime -int 300
|
defaults write com.apple.BezelServices kDimTime -int 300
|
||||||
|
|
||||||
# Set language and text formats
|
# Set language and text formats
|
||||||
# Note: if you’re in the US, replace `EUR` with `USD`, `Centimeters` with
|
# Note: if you’re in the US, replace `EUR` with `USD`, `Centimeters` with
|
||||||
# `Inches`, and `true` with `false`.
|
# `Inches`, and `true` with `false`.
|
||||||
defaults write NSGlobalDomain AppleLanguages -array "en" "ru"
|
defaults write NSGlobalDomain AppleLanguages -array "en" "nl"
|
||||||
defaults write NSGlobalDomain AppleLocale -string "ru_RU@currency=RUR"
|
#defaults write NSGlobalDomain AppleLocale -string "nl_NL@currency=RUR"
|
||||||
defaults write NSGlobalDomain AppleMeasurementUnits -string "Centimeters"
|
defaults write NSGlobalDomain AppleMeasurementUnits -string "Centimeters"
|
||||||
defaults write NSGlobalDomain AppleMetricUnits -bool true
|
defaults write NSGlobalDomain AppleMetricUnits -bool true
|
||||||
|
|
||||||
# Set the timezone; see `systemsetup -listtimezones` for other values
|
# Set the timezone; see `systemsetup -listtimezones` for other values
|
||||||
systemsetup -settimezone "Europe/Moscow" > /dev/null
|
systemsetup -settimezone "Europe/Amsterdam" > /dev/null
|
||||||
|
|
||||||
# Disable auto-correct
|
# Disable auto-correct
|
||||||
defaults write NSGlobalDomain NSAutomaticSpellingCorrectionEnabled -bool false
|
#defaults write NSGlobalDomain NSAutomaticSpellingCorrectionEnabled -bool false
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
# Screen #
|
# Screen #
|
||||||
@ -189,14 +189,14 @@ defaults write com.apple.screencapture type -string "png"
|
|||||||
defaults write NSGlobalDomain AppleFontSmoothing -int 2
|
defaults write NSGlobalDomain AppleFontSmoothing -int 2
|
||||||
|
|
||||||
# Enable HiDPI display modes (requires restart)
|
# Enable HiDPI display modes (requires restart)
|
||||||
sudo defaults write /Library/Preferences/com.apple.windowserver DisplayResolutionEnabled -bool true
|
#sudo defaults write /Library/Preferences/com.apple.windowserver DisplayResolutionEnabled -bool true
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
# Finder #
|
# Finder #
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
# Finder: allow quitting via ⌘ + Q; doing so will also hide desktop icons
|
# Finder: allow quitting via ⌘ + Q; doing so will also hide desktop icons
|
||||||
defaults write com.apple.finder QuitMenuItem -bool true
|
#defaults write com.apple.finder QuitMenuItem -bool true
|
||||||
|
|
||||||
# Finder: disable window animations and Get Info animations
|
# Finder: disable window animations and Get Info animations
|
||||||
defaults write com.apple.finder DisableAllAnimations -bool true
|
defaults write com.apple.finder DisableAllAnimations -bool true
|
||||||
@ -214,7 +214,7 @@ defaults write com.apple.finder AppleShowAllFiles -bool true
|
|||||||
defaults write NSGlobalDomain AppleShowAllExtensions -bool true
|
defaults write NSGlobalDomain AppleShowAllExtensions -bool true
|
||||||
|
|
||||||
# Finder: hide status bar
|
# Finder: hide status bar
|
||||||
defaults write com.apple.finder ShowStatusBar -bool false
|
#defaults write com.apple.finder ShowStatusBar -bool false
|
||||||
|
|
||||||
# Finder: show path bar
|
# Finder: show path bar
|
||||||
defaults write com.apple.finder ShowPathbar -boolean true
|
defaults write com.apple.finder ShowPathbar -boolean true
|
||||||
@ -223,7 +223,7 @@ defaults write com.apple.finder ShowPathbar -boolean true
|
|||||||
defaults write com.apple.finder QLEnableTextSelection -bool true
|
defaults write com.apple.finder QLEnableTextSelection -bool true
|
||||||
|
|
||||||
# Display full POSIX path as Finder window title
|
# Display full POSIX path as Finder window title
|
||||||
#defaults write com.apple.finder _FXShowPosixPathInTitle -bool true
|
defaults write com.apple.finder _FXShowPosixPathInTitle -bool true
|
||||||
|
|
||||||
# When performing a search, search the current folder by default
|
# When performing a search, search the current folder by default
|
||||||
defaults write com.apple.finder FXDefaultSearchScope -string "SCcf"
|
defaults write com.apple.finder FXDefaultSearchScope -string "SCcf"
|
||||||
@ -240,9 +240,9 @@ defaults write com.apple.frameworks.diskimages skip-verify-locked -bool true
|
|||||||
defaults write com.apple.frameworks.diskimages skip-verify-remote -bool true
|
defaults write com.apple.frameworks.diskimages skip-verify-remote -bool true
|
||||||
|
|
||||||
# Automatically open a new Finder window when a volume is mounted
|
# Automatically open a new Finder window when a volume is mounted
|
||||||
defaults write com.apple.frameworks.diskimages auto-open-ro-root -bool true
|
#defaults write com.apple.frameworks.diskimages auto-open-ro-root -bool true
|
||||||
defaults write com.apple.frameworks.diskimages auto-open-rw-root -bool true
|
#defaults write com.apple.frameworks.diskimages auto-open-rw-root -bool true
|
||||||
defaults write com.apple.finder OpenWindowForNewRemovableDisk -bool true
|
#defaults write com.apple.finder OpenWindowForNewRemovableDisk -bool true
|
||||||
|
|
||||||
# Show item info below icons on the desktop and in other icon views
|
# Show item info below icons on the desktop and in other icon views
|
||||||
#/usr/libexec/PlistBuddy -c "Set :DesktopViewSettings:IconViewSettings:showItemInfo true" ~/Library/Preferences/com.apple.finder.plist
|
#/usr/libexec/PlistBuddy -c "Set :DesktopViewSettings:IconViewSettings:showItemInfo true" ~/Library/Preferences/com.apple.finder.plist
|
||||||
@ -250,9 +250,9 @@ defaults write com.apple.finder OpenWindowForNewRemovableDisk -bool true
|
|||||||
#/usr/libexec/PlistBuddy -c "Set :StandardViewSettings:IconViewSettings:showItemInfo true" ~/Library/Preferences/com.apple.finder.plist
|
#/usr/libexec/PlistBuddy -c "Set :StandardViewSettings:IconViewSettings:showItemInfo true" ~/Library/Preferences/com.apple.finder.plist
|
||||||
|
|
||||||
# Enable snap-to-grid for icons on the desktop and in other icon views
|
# Enable snap-to-grid for icons on the desktop and in other icon views
|
||||||
/usr/libexec/PlistBuddy -c "Set :DesktopViewSettings:IconViewSettings:arrangeBy grid" ~/Library/Preferences/com.apple.finder.plist
|
#/usr/libexec/PlistBuddy -c "Set :DesktopViewSettings:IconViewSettings:arrangeBy grid" ~/Library/Preferences/com.apple.finder.plist
|
||||||
/usr/libexec/PlistBuddy -c "Set :FK_StandardViewSettings:IconViewSettings:arrangeBy grid" ~/Library/Preferences/com.apple.finder.plist
|
#/usr/libexec/PlistBuddy -c "Set :FK_StandardViewSettings:IconViewSettings:arrangeBy grid" ~/Library/Preferences/com.apple.finder.plist
|
||||||
/usr/libexec/PlistBuddy -c "Set :StandardViewSettings:IconViewSettings:arrangeBy grid" ~/Library/Preferences/com.apple.finder.plist
|
#/usr/libexec/PlistBuddy -c "Set :StandardViewSettings:IconViewSettings:arrangeBy grid" ~/Library/Preferences/com.apple.finder.plist
|
||||||
|
|
||||||
# Increase grid spacing for icons on the desktop and in other icon views
|
# Increase grid spacing for icons on the desktop and in other icon views
|
||||||
#/usr/libexec/PlistBuddy -c "Set :DesktopViewSettings:IconViewSettings:gridSpacing 100" ~/Library/Preferences/com.apple.finder.plist
|
#/usr/libexec/PlistBuddy -c "Set :DesktopViewSettings:IconViewSettings:gridSpacing 100" ~/Library/Preferences/com.apple.finder.plist
|
||||||
@ -269,7 +269,7 @@ defaults write com.apple.finder OpenWindowForNewRemovableDisk -bool true
|
|||||||
defaults write com.apple.finder FXPreferredViewStyle -string "Nlsv"
|
defaults write com.apple.finder FXPreferredViewStyle -string "Nlsv"
|
||||||
|
|
||||||
# Disable the warning before emptying the Trash
|
# Disable the warning before emptying the Trash
|
||||||
#defaults write com.apple.finder WarnOnEmptyTrash -bool false
|
defaults write com.apple.finder WarnOnEmptyTrash -bool false
|
||||||
|
|
||||||
# Empty Trash securely by default
|
# Empty Trash securely by default
|
||||||
defaults write com.apple.finder EmptyTrashSecurely -bool true
|
defaults write com.apple.finder EmptyTrashSecurely -bool true
|
||||||
@ -277,16 +277,16 @@ defaults write com.apple.finder EmptyTrashSecurely -bool true
|
|||||||
# Enable AirDrop over Ethernet and on unsupported Macs running Lion
|
# Enable AirDrop over Ethernet and on unsupported Macs running Lion
|
||||||
defaults write com.apple.NetworkBrowser BrowseAllInterfaces -bool true
|
defaults write com.apple.NetworkBrowser BrowseAllInterfaces -bool true
|
||||||
|
|
||||||
# Finder: disable sounds
|
# Finder: disable sounds
|
||||||
defaults write com.apple.finder FinderSounds -boolean false
|
defaults write com.apple.finder FinderSounds -boolean false
|
||||||
|
|
||||||
# Show the ~/Library folder
|
# Show the ~/Library folder
|
||||||
chflags nohidden ~/Library
|
chflags nohidden ~/Library
|
||||||
|
|
||||||
# Remove Dropbox’s green checkmark icons in Finder
|
# Remove Dropbox’s green checkmark icons in Finder
|
||||||
file=/Applications/Dropbox.app/Contents/Resources/check.icns
|
#file=/Applications/Dropbox.app/Contents/Resources/check.icns
|
||||||
[ -e "$file" ] && mv -f "$file" "$file.bak"
|
#[ -e "$file" ] && mv -f "$file" "$file.bak"
|
||||||
unset file
|
#unset file
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
# Dock & hot corners #
|
# Dock & hot corners #
|
||||||
@ -296,13 +296,13 @@ unset file
|
|||||||
#defaults write com.apple.dock mouse-over-hilte-stack -bool true
|
#defaults write com.apple.dock mouse-over-hilte-stack -bool true
|
||||||
|
|
||||||
# Set the icon size of Dock items to 60 pixels
|
# Set the icon size of Dock items to 60 pixels
|
||||||
defaults write com.apple.dock tilesize -int 60
|
#defaults write com.apple.dock tilesize -int 60
|
||||||
|
|
||||||
# Enable spring loading for all Dock items
|
# Enable spring loading for all Dock items
|
||||||
defaults write com.apple.dock enable-spring-load-actions-on-all-items -bool true
|
#defaults write com.apple.dock enable-spring-load-actions-on-all-items -bool true
|
||||||
|
|
||||||
# Don't show indicator lights for open applications in the Dock
|
# Don't show indicator lights for open applications in the Dock
|
||||||
defaults write com.apple.dock show-process-indicators -bool false
|
#defaults write com.apple.dock show-process-indicators -bool false
|
||||||
|
|
||||||
# Don’t animate opening applications from the Dock
|
# Don’t animate opening applications from the Dock
|
||||||
defaults write com.apple.dock launchanim -bool false
|
defaults write com.apple.dock launchanim -bool false
|
||||||
@ -314,28 +314,28 @@ defaults write com.apple.dock expose-animation-duration -float 0.1
|
|||||||
defaults write com.apple.dock expose-group-by-app -bool true
|
defaults write com.apple.dock expose-group-by-app -bool true
|
||||||
|
|
||||||
# Don’t show Dashboard as a Space
|
# Don’t show Dashboard as a Space
|
||||||
defaults write com.apple.dock dashboard-in-overlay -bool true
|
#defaults write com.apple.dock dashboard-in-overlay -bool true
|
||||||
|
|
||||||
# Enable the 2D Dock
|
# Enable the 2D Dock
|
||||||
defaults write com.apple.dock no-glass -bool true
|
#defaults write com.apple.dock no-glass -bool true
|
||||||
|
|
||||||
# Automatically hide and show the Dock
|
# Automatically hide and show the Dock
|
||||||
defaults write com.apple.dock autohide -bool true
|
defaults write com.apple.dock autohide -bool true
|
||||||
|
|
||||||
# Remove the Delay when Showing and Hiding the Dock
|
# Remove the Delay when Showing and Hiding the Dock
|
||||||
defaults write com.apple.dock autohide-delay -float 0
|
#defaults write com.apple.dock autohide-delay -float 0
|
||||||
|
|
||||||
# Remove the animation when hiding/showing the Dock
|
# Remove the animation when hiding/showing the Dock
|
||||||
defaults write com.apple.dock autohide-time-modifier -float 0
|
defaults write com.apple.dock autohide-time-modifier -float 0
|
||||||
|
|
||||||
# Make Dock icons of hidden applications translucent
|
# Make Dock icons of hidden applications translucent
|
||||||
#defaults write com.apple.dock showhidden -bool true
|
defaults write com.apple.dock showhidden -bool true
|
||||||
|
|
||||||
# Disable icon bouncing (looks like it don't work)
|
# Disable icon bouncing (looks like it don't work)
|
||||||
defaults write com.apple.dock no-bouncing -bool true
|
defaults write com.apple.dock no-bouncing -bool true
|
||||||
|
|
||||||
# Enable Space switching on Command-Tab
|
# Enable Space switching on Command-Tab
|
||||||
defaults write com.apple.dock workspaces-auto-swoosh -bool true
|
#defaults write com.apple.dock workspaces-auto-swoosh -bool true
|
||||||
|
|
||||||
# Show only active applications
|
# Show only active applications
|
||||||
defaults write com.apple.dock static-only -bool true
|
defaults write com.apple.dock static-only -bool true
|
||||||
@ -373,12 +373,12 @@ defaults write -g CheckSpellingWhileTyping -boolean true
|
|||||||
defaults write -g WebContinuousSpellCheckingEnabled -boolean true
|
defaults write -g WebContinuousSpellCheckingEnabled -boolean true
|
||||||
|
|
||||||
# Spotlight menu keyboard shortcut: none
|
# Spotlight menu keyboard shortcut: none
|
||||||
/usr/libexec/PlistBuddy "$HOME/Library/Preferences/com.apple.symbolichotkeys.plist" -c 'Delete AppleSymbolicHotKeys:64' > /dev/null 2>&1
|
#/usr/libexec/PlistBuddy "$HOME/Library/Preferences/com.apple.symbolichotkeys.plist" -c 'Delete AppleSymbolicHotKeys:64' > /dev/null 2>&1
|
||||||
/usr/libexec/PlistBuddy "$HOME/Library/Preferences/com.apple.symbolichotkeys.plist" -c 'Add AppleSymbolicHotKeys:64:enabled bool false'
|
#/usr/libexec/PlistBuddy "$HOME/Library/Preferences/com.apple.symbolichotkeys.plist" -c 'Add AppleSymbolicHotKeys:64:enabled bool false'
|
||||||
|
|
||||||
# Spotlight window keyboard shortcut: none
|
# Spotlight window keyboard shortcut: none
|
||||||
/usr/libexec/PlistBuddy "$HOME/Library/Preferences/com.apple.symbolichotkeys.plist" -c 'Delete AppleSymbolicHotKeys:65' > /dev/null 2>&1
|
#/usr/libexec/PlistBuddy "$HOME/Library/Preferences/com.apple.symbolichotkeys.plist" -c 'Delete AppleSymbolicHotKeys:65' > /dev/null 2>&1
|
||||||
/usr/libexec/PlistBuddy "$HOME/Library/Preferences/com.apple.symbolichotkeys.plist" -c 'Add AppleSymbolicHotKeys:65:enabled bool false'
|
#/usr/libexec/PlistBuddy "$HOME/Library/Preferences/com.apple.symbolichotkeys.plist" -c 'Add AppleSymbolicHotKeys:65:enabled bool false'
|
||||||
|
|
||||||
# Remove Spotlight from menu bar
|
# Remove Spotlight from menu bar
|
||||||
sudo chmod 600 /System/Library/CoreServices/Search.bundle/Contents/MacOS/Search
|
sudo chmod 600 /System/Library/CoreServices/Search.bundle/Contents/MacOS/Search
|
||||||
@ -406,7 +406,7 @@ defaults write com.apple.Safari ShowFavoritesBar -bool false
|
|||||||
defaults write com.apple.Safari DebugSnapshotsUpdatePolicy -int 2
|
defaults write com.apple.Safari DebugSnapshotsUpdatePolicy -int 2
|
||||||
|
|
||||||
# Enable Safari’s debug menu
|
# Enable Safari’s debug menu
|
||||||
defaults write com.apple.Safari IncludeInternalDebugMenu -bool true
|
#defaults write com.apple.Safari IncludeInternalDebugMenu -bool true
|
||||||
|
|
||||||
# Make Safari’s search banners default to Contains instead of Starts With
|
# Make Safari’s search banners default to Contains instead of Starts With
|
||||||
defaults write com.apple.Safari FindOnPageMatchesWordStartsOnly -bool false
|
defaults write com.apple.Safari FindOnPageMatchesWordStartsOnly -bool false
|
||||||
@ -430,25 +430,25 @@ defaults write com.apple.appstore WebKitDeveloperExtras -bool true
|
|||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
# Disable the iTunes store link arrows
|
# Disable the iTunes store link arrows
|
||||||
defaults write com.apple.iTunes show-store-link-arrows -bool false
|
#defaults write com.apple.iTunes show-store-link-arrows -bool false
|
||||||
|
|
||||||
# Disable the Genius sidebar in iTunes
|
# Disable the Genius sidebar in iTunes
|
||||||
defaults write com.apple.iTunes disableGeniusSidebar -bool true
|
#defaults write com.apple.iTunes disableGeniusSidebar -bool true
|
||||||
|
|
||||||
# Disable the Ping sidebar in iTunes
|
# Disable the Ping sidebar in iTunes
|
||||||
defaults write com.apple.iTunes disablePingSidebar -bool true
|
#defaults write com.apple.iTunes disablePingSidebar -bool true
|
||||||
|
|
||||||
# Disable all the other Ping stuff in iTunes
|
# Disable all the other Ping stuff in iTunes
|
||||||
defaults write com.apple.iTunes disablePing -bool true
|
#defaults write com.apple.iTunes disablePing -bool true
|
||||||
|
|
||||||
# Disable radio stations in iTunes
|
# Disable radio stations in iTunes
|
||||||
defaults write com.apple.iTunes disableRadio -bool true
|
#defaults write com.apple.iTunes disableRadio -bool true
|
||||||
|
|
||||||
# Make ⌘ + F focus the search input in iTunes
|
# Make ⌘ + F focus the search input in iTunes
|
||||||
# To use these commands in another language, browse iTunes’s package contents,
|
# To use these commands in another language, browse iTunes’s package contents,
|
||||||
# open `Contents/Resources/your-language.lproj/Localizable.strings`, and look
|
# open `Contents/Resources/your-language.lproj/Localizable.strings`, and look
|
||||||
# for `kHiddenMenuItemTargetSearch`.
|
# for `kHiddenMenuItemTargetSearch`.
|
||||||
defaults write com.apple.iTunes NSUserKeyEquivalents -dict-add "Target Search Field" "@F"
|
#defaults write com.apple.iTunes NSUserKeyEquivalents -dict-add "Target Search Field" "@F"
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
# Terminal #
|
# Terminal #
|
||||||
@ -493,7 +493,7 @@ defaults write com.apple.mail DisableInlineAttachmentViewing -bool true
|
|||||||
defaults write com.apple.TimeMachine DoNotOfferNewDisksForBackup -bool true
|
defaults write com.apple.TimeMachine DoNotOfferNewDisksForBackup -bool true
|
||||||
|
|
||||||
# Disable local Time Machine backups
|
# Disable local Time Machine backups
|
||||||
hash tmutil &> /dev/null && sudo tmutil disablelocal
|
#hash tmutil &> /dev/null && sudo tmutil disablelocal
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
# Address Book, Dashboard, iCal, TextEdit, and Disk Utility #
|
# Address Book, Dashboard, iCal, TextEdit, and Disk Utility #
|
||||||
@ -506,7 +506,7 @@ hash tmutil &> /dev/null && sudo tmutil disablelocal
|
|||||||
#defaults write com.apple.dashboard devmode -bool true
|
#defaults write com.apple.dashboard devmode -bool true
|
||||||
|
|
||||||
# Disable Dashboard
|
# Disable Dashboard
|
||||||
defaults write com.apple.dashboard mcx-disabled -bool true
|
#defaults write com.apple.dashboard mcx-disabled -bool true
|
||||||
|
|
||||||
# Enable the debug menu in iCal (pre-10.8)
|
# Enable the debug menu in iCal (pre-10.8)
|
||||||
#defaults write com.apple.iCal IncludeDebugMenu -bool true
|
#defaults write com.apple.iCal IncludeDebugMenu -bool true
|
||||||
@ -529,14 +529,6 @@ defaults write com.apple.TextEdit PlainTextEncodingForWrite -int 4
|
|||||||
defaults write com.google.Chrome ExtensionInstallSources -array "https://*.github.com/*" "http://userscripts.org/*"
|
defaults write com.google.Chrome ExtensionInstallSources -array "https://*.github.com/*" "http://userscripts.org/*"
|
||||||
defaults write com.google.Chrome.canary ExtensionInstallSources -array "https://*.github.com/*" "http://userscripts.org/*"
|
defaults write com.google.Chrome.canary ExtensionInstallSources -array "https://*.github.com/*" "http://userscripts.org/*"
|
||||||
|
|
||||||
###############################################################################
|
|
||||||
# Sublime Text 2 #
|
|
||||||
###############################################################################
|
|
||||||
|
|
||||||
# Link Sublime Text 2 command line
|
|
||||||
[ ! -d ~/bin ] && mkdir ~/bin
|
|
||||||
ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" ~/bin/subl
|
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
# Power #
|
# Power #
|
||||||
###############################################################################
|
###############################################################################
|
||||||
@ -592,4 +584,4 @@ for app in "Address Book" "Calendar" "Contacts" "Dashboard" "Dock" "Finder" \
|
|||||||
"Mail" "Safari" "SystemUIServer" "Terminal" "iCal" "iTunes" "NotificationCenter"; do
|
"Mail" "Safari" "SystemUIServer" "Terminal" "iCal" "iTunes" "NotificationCenter"; do
|
||||||
killall "$app" > /dev/null 2>&1
|
killall "$app" > /dev/null 2>&1
|
||||||
done
|
done
|
||||||
echo "Done. Note that some of these changes require a logout/restart to take effect."
|
echo "Done. Note that some of these changes require a logout/restart to take effect."
|
||||||
|
@ -1,13 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# Installs quick look plugins: qlImageSize
|
|
||||||
|
|
||||||
# qlImageSize
|
|
||||||
TMPDIR=`mktemp -d` && {
|
|
||||||
cd $TMPDIR
|
|
||||||
curl -o _.zip http://cloud.github.com/downloads/Nyx0uf/qlImageSize/qlImageSize.qlgenerator.zip
|
|
||||||
unzip -d ~/Library/QuickLook _.zip
|
|
||||||
rm -rf $TMPDIR
|
|
||||||
}
|
|
||||||
|
|
||||||
qlmanage -r
|
|
@ -28,54 +28,12 @@ brew install homebrew/dupes/grep
|
|||||||
brew install git
|
brew install git
|
||||||
brew install git-extras
|
brew install git-extras
|
||||||
brew install hub
|
brew install hub
|
||||||
sudo bash < <( curl https://raw.github.com/jamiew/git-friendly/master/install.sh)
|
sudo bash < <( curl https://raw.github.com/jamiew/git-friendly/master/install.sh ~/Documents/src/bin)
|
||||||
|
|
||||||
# MySQL
|
|
||||||
brew install mysql
|
|
||||||
unset TMPDIR
|
|
||||||
mysql_install_db --verbose --user=`whoami` --basedir="$(brew --prefix mysql)" --datadir=/usr/local/var/mysql --tmpdir=/tmp
|
|
||||||
/usr/local/opt/mysql/bin/mysqladmin -u root password 'root'
|
|
||||||
|
|
||||||
# PHP
|
|
||||||
cd /etc
|
|
||||||
sudo cp php.ini.default php.ini
|
|
||||||
sudo sed -i '' "s^/var/mysql/mysql.sock^/tmp/mysql.sock^" php.ini
|
|
||||||
|
|
||||||
# Apache: enable PHP, .htaccess files, virtual hosts and set it to run as current user
|
|
||||||
cd /etc/apache2
|
|
||||||
sudo cp httpd.conf httpd.conf.bak
|
|
||||||
sudo cp extra/httpd-vhosts.conf extra/httpd-vhosts.conf.bak
|
|
||||||
sudo sed -i '' "s^#\(LoadModule php5_module\)^\1^" httpd.conf
|
|
||||||
sudo sed -i '' "s^#\(Include /private/etc/apache2/extra/httpd-vhosts.conf\)^\1^" httpd.conf
|
|
||||||
sudo sed -i '' "s^<IfDefine WEBSHARING_ON>^<IfDefine !0>^" httpd.conf
|
|
||||||
sudo sed -i '' "s^User _www^User `whoami`^" httpd.conf
|
|
||||||
sudo sed -i '' "s^Group _www^Group staff^" httpd.conf
|
|
||||||
echo -e "NameVirtualHost *:80\n\n<Directory />\n AllowOverride All\n Allow from all\n</Directory>\n" | sudo tee extra/httpd-vhosts.conf
|
|
||||||
cd -
|
|
||||||
|
|
||||||
# Extend global $PATH
|
|
||||||
echo -e "setenv PATH $HOME/dotfiles/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" | sudo tee /etc/launchd.conf
|
|
||||||
|
|
||||||
# Ag, the better ack, which is the better grep
|
# Ag, the better ack, which is the better grep
|
||||||
brew install the_silver_searcher
|
brew install the_silver_searcher
|
||||||
brew install https://raw.github.com/nybblr/homebrew-dev/master/sack.rb
|
brew install https://raw.github.com/nybblr/homebrew-dev/master/sack.rb
|
||||||
|
|
||||||
# Everything else
|
|
||||||
brew install unrar
|
|
||||||
brew install msmtp --with-macosx-keyring
|
|
||||||
brew install mutt --sidebar-patch
|
|
||||||
|
|
||||||
# Node.js
|
|
||||||
brew install node
|
|
||||||
brew install casperjs
|
|
||||||
npm config set loglevel warn
|
|
||||||
npm install -g grunt-cli
|
|
||||||
npm install -g yo
|
|
||||||
npm install -g jshint
|
|
||||||
npm install -g jscs
|
|
||||||
npm install -g bower
|
|
||||||
npm install -g docpad
|
|
||||||
|
|
||||||
# Python
|
# Python
|
||||||
brew install python
|
brew install python
|
||||||
sudo pip install fabric
|
sudo pip install fabric
|
||||||
|
@ -1,39 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# Installs/updates Sublime packages
|
|
||||||
#
|
|
||||||
# 1. Installs Package Control (all plugins listed in `Package Control.sublime-settings` will be installed after Sublime restarts).
|
|
||||||
# 2. Installs some packages from GitHub.
|
|
||||||
|
|
||||||
|
|
||||||
if [ `uname` == 'Darwin' ]; then
|
|
||||||
DIR=~/Library/Application\ Support/Sublime\ Text\ 2/Packages
|
|
||||||
else
|
|
||||||
DIR=~/AppData/Roaming/Sublime\ Text\ 2/Packages
|
|
||||||
fi
|
|
||||||
mkdir -p "$DIR"
|
|
||||||
cd "$DIR"
|
|
||||||
|
|
||||||
|
|
||||||
#
|
|
||||||
# Package Control
|
|
||||||
#
|
|
||||||
|
|
||||||
[ ! -d Package\ Control ] && [ ! -f Package\ Control.sublime-package ] && curl -o Package\ Control.sublime-package http://sublime.wbond.net/Package%20Control.sublime-package
|
|
||||||
|
|
||||||
|
|
||||||
#
|
|
||||||
# GitHub
|
|
||||||
#
|
|
||||||
|
|
||||||
# Hayaku Bundle
|
|
||||||
# if [ -d ./hayaku ]; then
|
|
||||||
# echo "Updating Hayaku Bundle..."
|
|
||||||
# cd "$DIR/hayaku"
|
|
||||||
# git pull
|
|
||||||
# git submodule update
|
|
||||||
# cd ..
|
|
||||||
# else
|
|
||||||
# echo "Installing Hayaku Bundle..."
|
|
||||||
# git clone -b sublime-master git://github.com/hayaku/hayaku.git --recursive
|
|
||||||
# fi
|
|
@ -1,17 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# Enables Sublime settings syncronization
|
|
||||||
|
|
||||||
|
|
||||||
if [ `uname` == 'Darwin' ]; then
|
|
||||||
DIR=~/Library/Application\ Support/Sublime\ Text\ 2
|
|
||||||
else
|
|
||||||
DIR=~/AppData/Roaming/Sublime\ Text\ 2
|
|
||||||
fi
|
|
||||||
|
|
||||||
[ ! -d "$DIR" ] && mkdir -p "$DIR/Packages"
|
|
||||||
if [ -d "$DIR/Packages/User" ]; then
|
|
||||||
mkdir "$DIR/Packages.bak"
|
|
||||||
mv "$DIR/Packages/User" "$DIR/Packages.bak/User"
|
|
||||||
fi
|
|
||||||
ln -s ~/dotfiles/sublime/User "$DIR/Packages/User"
|
|
Loading…
x
Reference in New Issue
Block a user