Skip to content

Commit 5e62d71

Browse files
committed
Update to newes
1 parent 01374c1 commit 5e62d71

1 file changed

Lines changed: 35 additions & 35 deletions

File tree

macSetup.bash

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
1313
###############################################################################
1414

1515
# Set computer name (as done via System Preferences → Sharing)
16-
sudo scutil --set ComputerName "hffmnn MBA"
17-
sudo scutil --set HostName "hffmnn MBA"
18-
sudo scutil --set LocalHostName "hffmnn-MBA"
19-
sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.smb.server NetBIOSName -string "hffmnn-MBA"
16+
sudo scutil --set ComputerName "hffmnn MBP"
17+
sudo scutil --set HostName "hffmnn MBP"
18+
sudo scutil --set LocalHostName "hffmnn-MBP"
19+
sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.smb.server NetBIOSName -string "hffmnn-MBP"
2020

2121
# Set standby delay to 2 hours (default is 1 hour)
22-
sudo pmset -a standbydelay 7200
22+
sudo pmset -a standbydelay 3600
2323

2424
# Menu bar: disable transparency
2525
defaults write NSGlobalDomain AppleEnableMenuBarTransparency -bool false
@@ -134,8 +134,8 @@ defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadThreeF
134134
defaults write NSGlobalDomain AppleKeyboardUIMode -int 3
135135

136136
# Enable access for assistive devices
137-
echo -n 'a' | sudo tee /private/var/db/.AccessibilityAPIEnabled > /dev/null 2>&1
138-
sudo chmod 444 /private/var/db/.AccessibilityAPIEnabled
137+
#echo -n 'a' | sudo tee /private/var/db/.AccessibilityAPIEnabled > /dev/null 2>&1
138+
#sudo chmod 444 /private/var/db/.AccessibilityAPIEnabled
139139
# TODO: avoid GUI password prompt somehow (http://apple.stackexchange.com/q/60476/4408)
140140
#sudo osascript -e 'tell application "System Events" to set UI elements enabled to true'
141141

@@ -276,8 +276,8 @@ defaults write com.apple.finder OpenWindowForNewRemovableDisk -bool true
276276
#/usr/libexec/PlistBuddy -c "Set :StandardViewSettings:IconViewSettings:iconSize 80" ~/Library/Preferences/com.apple.finder.plist
277277

278278
# Use list view in all Finder windows by default
279-
# Four-letter codes for the other view modes: `icnv`, `clmv`, `Flwv`
280-
defaults write com.apple.finder FXPreferredViewStyle -string "Nlsv"
279+
# Four-letter codes for the other view modes: `icnv`, `clmv`, `Flwv`, `Nlsv`
280+
defaults write com.apple.finder FXPreferredViewStyle -string "Flwv"
281281

282282
# Disable the warning before emptying the Trash
283283
#defaults write com.apple.finder WarnOnEmptyTrash -bool false
@@ -289,14 +289,14 @@ defaults write com.apple.finder FXPreferredViewStyle -string "Nlsv"
289289
defaults write com.apple.NetworkBrowser BrowseAllInterfaces -bool true
290290

291291
# Enable the MacBook Air SuperDrive on any Mac
292-
sudo nvram boot-args="mbasd=1"
292+
#sudo nvram boot-args="mbasd=1"
293293

294294
# Show the ~/Library folder
295295
chflags nohidden ~/Library
296296

297297
# Remove Dropbox’s green checkmark icons in Finder
298-
file=/Applications/Dropbox.app/Contents/Resources/emblem-dropbox-uptodate.icns
299-
[ -e "$file" ] && mv -f "$file" "$file.bak"
298+
#file=/Applications/Dropbox.app/Contents/Resources/emblem-dropbox-uptodate.icns
299+
#[ -e "$file" ] && mv -f "$file" "$file.bak"
300300

301301
###############################################################################
302302
# Dock, Dashboard, and hot corners #
@@ -347,7 +347,7 @@ defaults write com.apple.dock autohide-delay -float 0
347347
#defaults write com.apple.dock no-glass -bool true
348348

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

352352
# Make Dock icons of hidden applications translucent
353353
defaults write com.apple.dock showhidden -bool true
@@ -445,8 +445,8 @@ defaults write NSGlobalDomain WebKitDeveloperExtras -bool true
445445
###############################################################################
446446

447447
# Disable send and reply animations in Mail.app
448-
defaults write com.apple.mail DisableReplyAnimations -bool true
449-
defaults write com.apple.mail DisableSendAnimations -bool true
448+
#defaults write com.apple.mail DisableReplyAnimations -bool true
449+
#defaults write com.apple.mail DisableSendAnimations -bool true
450450

451451
# Copy email addresses as `foo@example.com` instead of `Foo Bar <foo@example.com>` in Mail.app
452452
defaults write com.apple.mail AddressesIncludeNameOnPasteboard -bool false
@@ -465,29 +465,29 @@ defaults write com.apple.mail NSUserKeyEquivalents -dict-add "Send" "@\\U21a9"
465465
# Use `sudo mdutil -i off "/Volumes/foo"` to stop indexing any volume.
466466
#sudo defaults write /.Spotlight-V100/VolumeConfiguration Exclusions -array "/Volumes"
467467
# Change indexing order and disable some file types
468-
defaults write com.apple.spotlight orderedItems -array \
469-
'{"enabled" = 1;"name" = "APPLICATIONS";}' \
470-
'{"enabled" = 1;"name" = "SYSTEM_PREFS";}' \
471-
'{"enabled" = 1;"name" = "DIRECTORIES";}' \
472-
'{"enabled" = 1;"name" = "PDF";}' \
473-
'{"enabled" = 1;"name" = "FONTS";}' \
474-
'{"enabled" = 0;"name" = "DOCUMENTS";}' \
475-
'{"enabled" = 0;"name" = "MESSAGES";}' \
476-
'{"enabled" = 0;"name" = "CONTACT";}' \
477-
'{"enabled" = 0;"name" = "EVENT_TODO";}' \
478-
'{"enabled" = 0;"name" = "IMAGES";}' \
479-
'{"enabled" = 0;"name" = "BOOKMARKS";}' \
480-
'{"enabled" = 0;"name" = "MUSIC";}' \
481-
'{"enabled" = 0;"name" = "MOVIES";}' \
482-
'{"enabled" = 0;"name" = "PRESENTATIONS";}' \
483-
'{"enabled" = 0;"name" = "SPREADSHEETS";}' \
484-
'{"enabled" = 0;"name" = "SOURCE";}'
468+
#defaults write com.apple.spotlight orderedItems -array \
469+
# '{"enabled" = 1;"name" = "APPLICATIONS";}' \
470+
# '{"enabled" = 1;"name" = "SYSTEM_PREFS";}' \
471+
# '{"enabled" = 1;"name" = "DIRECTORIES";}' \
472+
# '{"enabled" = 1;"name" = "PDF";}' \
473+
# '{"enabled" = 1;"name" = "FONTS";}' \
474+
# '{"enabled" = 0;"name" = "DOCUMENTS";}' \
475+
# '{"enabled" = 0;"name" = "MESSAGES";}' \
476+
# '{"enabled" = 0;"name" = "CONTACT";}' \
477+
# '{"enabled" = 0;"name" = "EVENT_TODO";}' \
478+
# '{"enabled" = 0;"name" = "IMAGES";}' \
479+
# '{"enabled" = 0;"name" = "BOOKMARKS";}' \
480+
# '{"enabled" = 0;"name" = "MUSIC";}' \
481+
# '{"enabled" = 0;"name" = "MOVIES";}' \
482+
# '{"enabled" = 0;"name" = "PRESENTATIONS";}' \
483+
# '{"enabled" = 0;"name" = "SPREADSHEETS";}' \
484+
# '{"enabled" = 0;"name" = "SOURCE";}'
485485
# Load new settings before rebuilding the index
486486
killall mds
487487
# Make sure indexing is enabled for the main volume
488488
sudo mdutil -i on /
489489
# Rebuild the index from scratch
490-
sudo mdutil -E /
490+
#sudo mdutil -E /
491491

492492
###############################################################################
493493
# Terminal #
@@ -499,8 +499,8 @@ defaults write com.apple.terminal StringEncodings -array 4
499499
# Use a modified version of the Pro theme by default in Terminal.app
500500
#open "$HOME/init/Mathias.terminal"
501501
#sleep 1 # Wait a bit to make sure the theme is loaded
502-
defaults write com.apple.terminal "Default Window Settings" -string "Homebrew"
503-
defaults write com.apple.terminal "Startup Window Settings" -string "Homebrew"
502+
#defaults write com.apple.terminal "Default Window Settings" -string "Homebrew"
503+
#defaults write com.apple.terminal "Startup Window Settings" -string "Homebrew"
504504

505505
# Enable “focus follows mouse” for Terminal.app and all X11 apps
506506
# i.e. hover over a window and start typing in it without clicking first

0 commit comments

Comments
 (0)