Last active
January 14, 2021 05:14
-
-
Save yoshi415/d8ff4d8d67b97c0dda73cf4706948eed to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "Creating an SSH key for you..." | |
ssh-keygen -t rsa | |
echo "" | |
echo "Please add this public key to Github \n" | |
echo "https://github.com/account/ssh \n" | |
read -p "Press [Enter] key after this..." | |
echo "" | |
echo "Installing xcode-select" | |
xcode-select --install | |
echo "" | |
# Check for Homebrew, | |
# Install if we don't have it | |
if test ! $(which brew); then | |
echo "Installing homebrew..." | |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
fi | |
# Update homebrew recipes | |
echo "Updating homebrew..." | |
brew update | |
echo "" | |
echo "Installing Git..." | |
brew install git | |
echo "Git config" | |
git config --global user.name "Yoshi" | |
git config --global user.email [email protected] | |
#echo "Installing brew git utilities..." | |
#brew install git-extras | |
#brew install legit | |
#brew install git-flow | |
# | |
#echo "Installing other brew stuff..." | |
#brew install tree | |
#brew install wget | |
#brew install trash | |
#brew install svn | |
#brew install mackup | |
#brew install node | |
echo "" | |
echo "Cleaning up brew" | |
brew cleanup | |
echo "" | |
#Install Zsh & Oh My Zsh | |
echo "Installing Oh My ZSH..." | |
curl -L http://install.ohmyz.sh | sh | |
echo "" | |
apps=( | |
alfred | |
alt-tab | |
bettertouchtool | |
dash | |
discord | |
dropbox | |
figma | |
firefox | |
fork | |
google-chrome | |
hazeover | |
iterm2 | |
microsoft-edge | |
nordvpn | |
1password | |
slack | |
smooze | |
spotify | |
visual-studio-code | |
vlc | |
zoom | |
) | |
brew install --cask ${apps[@]} | |
brew cleanup | |
echo "" | |
echo "Install Powerline fonts for agnoster theme" | |
git clone https://github.com/powerline/fonts.git --depth=1 | |
cd fonts | |
./install.sh | |
cd .. | |
rm -rf fonts | |
echo "" | |
echo "Setting some Mac settings…" | |
echo "Allow text selection in Quick Look" | |
echo "" | |
defaults write com.apple.finder QLEnableTextSelection -bool TRUE | |
echo "Disabling OS X Gate Keeper" | |
echo "" | |
#"(You'll be able to install any app you want from here on, not just Mac App Store apps)" | |
sudo spctl --master-disable | |
sudo defaults write /var/db/SystemPolicy-prefs.plist enabled -string no | |
defaults write com.apple.LaunchServices LSQuarantine -bool false | |
echo "Expanding the save panel by default" | |
echo "" | |
defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true | |
defaults write NSGlobalDomain PMPrintingExpandedStateForPrint -bool true | |
defaults write NSGlobalDomain PMPrintingExpandedStateForPrint2 -bool true | |
echo "Automatically quit printer app once the print jobs complete" | |
echo "" | |
defaults write com.apple.print.PrintingPrefs "Quit When Finished" -bool true | |
echo "Check for software updates daily, not just once per week" | |
echo "" | |
defaults write com.apple.SoftwareUpdate ScheduleFrequency -int 1 | |
echo "Enabling subpixel font rendering on non-Apple LCDs" | |
echo "" | |
defaults write NSGlobalDomain AppleFontSmoothing -int 0 | |
echo "Showing icons for hard drives, servers, and removable media on the desktop" | |
echo "" | |
defaults write com.apple.finder ShowExternalHardDrivesOnDesktop -bool true | |
echo "Showing all filename extensions in Finder by default" | |
echo "" | |
defaults write NSGlobalDomain AppleShowAllExtensions -bool true | |
echo "Disabling the warning when changing a file extension" | |
echo "" | |
defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false | |
echo "Use column view in all Finder windows by default" | |
echo "" | |
defaults write com.apple.finder FXPreferredViewStyle Clmv | |
echo "Avoiding the creation of .DS_Store files on network volumes" | |
echo "" | |
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true | |
echo "Enabling snap-to-grid for icons on the desktop and in other icon views" | |
echo "" | |
/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 :StandardViewSettings:IconViewSettings:arrangeBy grid" ~/Library/Preferences/com.apple.finder.plist | |
echo "Setting the icon size of Dock items to 36 pixels for optimal size/screen-realestate" | |
echo "" | |
defaults write com.apple.dock tilesize -int 36 | |
echo "Speeding up Mission Control animations and grouping windows by application" | |
echo "" | |
defaults write com.apple.dock expose-animation-duration -float 0.1 | |
defaults write com.apple.dock "expose-group-by-app" -bool true | |
echo "Setting Dock to auto-hide and removing the auto-hiding delay" | |
echo "" | |
defaults write com.apple.dock autohide -bool true | |
defaults write com.apple.dock autohide-delay -float 0 | |
defaults write com.apple.dock autohide-time-modifier -float 0 | |
echo "Setting email addresses to copy as '[email protected]' instead of 'Foo Bar <[email protected]>' in Mail.app" | |
echo "" | |
defaults write com.apple.mail AddressesIncludeNameOnPasteboard -bool false | |
echo "Preventing Time Machine from prompting to use new hard drives as backup volume" | |
echo "" | |
defaults write com.apple.TimeMachine DoNotOfferNewDisksForBackup -bool true | |
echo "Speeding up wake from sleep to 24 hours from an hour" | |
echo "" | |
# http://www.cultofmac.com/221392/quick-hack-speeds-up-retina-macbooks-wake-from-sleep-os-x-tips/ | |
sudo pmset -a standbydelay 86400 | |
echo "Setting screenshots location to ~/Desktop" | |
echo "" | |
defaults write com.apple.screencapture location -string "$HOME/Desktop/Screenshots" | |
echo "Setting screenshot format to PNG" | |
echo "" | |
defaults write com.apple.screencapture type -string "png" | |
echo "Hiding Safari's bookmarks bar by default" | |
echo "" | |
defaults write com.apple.Safari ShowFavoritesBar -bool false | |
echo "Hiding Safari's sidebar in Top Sites" | |
echo "" | |
defaults write com.apple.Safari ShowSidebarInTopSites -bool false | |
echo "Disabling Safari's thumbnail cache for History and Top Sites" | |
echo "" | |
defaults write com.apple.Safari DebugSnapshotsUpdatePolicy -int 2 | |
echo "Enabling Safari's debug menu" | |
echo "" | |
defaults write com.apple.Safari IncludeInternalDebugMenu -bool true | |
echo "Enabling the Develop menu and the Web Inspector in Safari" | |
echo "" | |
defaults write com.apple.Safari IncludeDevelopMenu -bool true | |
defaults write com.apple.Safari WebKitDeveloperExtrasEnabledPreferenceKey -bool true | |
defaults write com.apple.Safari "com.apple.Safari.ContentPageGroupIdentifier.WebKit2DeveloperExtrasEnabled" -bool true | |
echo "Adding a context menu item for showing the Web Inspector in web views" | |
echo "" | |
defaults write NSGlobalDomain WebKitDeveloperExtras -bool true | |
echo "Disable 'natural' (Lion-style) scrolling" | |
echo "" | |
defaults write NSGlobalDomain com.apple.swipescrolldirection -bool false | |
killall Finder | |
echo "" | |
echo "Opening searches for manually installed apps" | |
open "https://www.google.com/search?q=logitech+options" | |
open "https://www.google.com/search?q=webcam settings" | |
open "https://www.google.com/search?q=vimari" | |
#open "https://www.google.com/search?q=" | |
echo "Done!" | |
echo "Set your font in iterm to Meslo LG" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment