mirror of
https://github.com/natelandau/shell-scripting-templates.git
synced 2025-11-10 14:13:45 -05:00
Minor updates for el Capitan
This commit is contained in:
@@ -110,7 +110,7 @@ needSudo
|
|||||||
header "Beginning osx.sh"
|
header "Beginning osx.sh"
|
||||||
info "This script runs a series of commands to pre-configure OSX."
|
info "This script runs a series of commands to pre-configure OSX."
|
||||||
|
|
||||||
seek_confirmation "Would you like to set your computer name (as done via System Preferences >> Sharing)? (y/n)"
|
seek_confirmation "Would you like to set your computer name (as done via System Preferences >> Sharing)?"
|
||||||
if is_confirmed; then
|
if is_confirmed; then
|
||||||
input "What would you like the name to be?"
|
input "What would you like the name to be?"
|
||||||
read COMPUTER_NAME
|
read COMPUTER_NAME
|
||||||
@@ -164,6 +164,7 @@ if is_confirmed; then
|
|||||||
|
|
||||||
success "Expand save panel by default"
|
success "Expand save panel by default"
|
||||||
defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true
|
defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true
|
||||||
|
defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode2 -bool true
|
||||||
|
|
||||||
success "Expand print panel by default"
|
success "Expand print panel by default"
|
||||||
defaults write NSGlobalDomain PMPrintingExpandedStateForPrint -bool true
|
defaults write NSGlobalDomain PMPrintingExpandedStateForPrint -bool true
|
||||||
@@ -262,7 +263,7 @@ if is_confirmed; then
|
|||||||
defaults write NSGlobalDomain ApplePressAndHoldEnabled -bool false
|
defaults write NSGlobalDomain ApplePressAndHoldEnabled -bool false
|
||||||
|
|
||||||
success "Set a blazingly fast keyboard repeat rate"
|
success "Set a blazingly fast keyboard repeat rate"
|
||||||
defaults write NSGlobalDomain KeyRepeat -int 0
|
defaults write NSGlobalDomain KeyRepeat -int 0.02
|
||||||
|
|
||||||
success "Automatically illuminate built-in MacBook keyboard in low light"
|
success "Automatically illuminate built-in MacBook keyboard in low light"
|
||||||
defaults write com.apple.BezelServices kDim -bool true
|
defaults write com.apple.BezelServices kDim -bool true
|
||||||
@@ -372,6 +373,7 @@ if is_confirmed; then
|
|||||||
|
|
||||||
success "Avoid creating .DS_Store files on network volumes"
|
success "Avoid creating .DS_Store files on network volumes"
|
||||||
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true
|
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true
|
||||||
|
defaults write com.apple.desktopservices DSDontWriteUSBStores -bool true
|
||||||
|
|
||||||
success "Disable disk image verification"
|
success "Disable disk image verification"
|
||||||
defaults write com.apple.frameworks.diskimages skip-verify -bool true
|
defaults write com.apple.frameworks.diskimages skip-verify -bool true
|
||||||
@@ -417,7 +419,7 @@ if is_confirmed; then
|
|||||||
# defaults write com.apple.finder EmptyTrashSecurely -bool true
|
# defaults write com.apple.finder EmptyTrashSecurely -bool true
|
||||||
|
|
||||||
success "Show the ~/Library folder"
|
success "Show the ~/Library folder"
|
||||||
chflags nohidden ~/Library
|
chflags nohidden ${HOME}/Library
|
||||||
|
|
||||||
#success "Remove Dropbox’s green checkmark icons in Finder"
|
#success "Remove Dropbox’s green checkmark icons in Finder"
|
||||||
#file=/Applications/Dropbox.app/Contents/Resources/emblem-dropbox-uptodate.icns
|
#file=/Applications/Dropbox.app/Contents/Resources/emblem-dropbox-uptodate.icns
|
||||||
|
|||||||
Reference in New Issue
Block a user