Last active
August 4, 2022 22:06
-
-
Save gtoast/2b14c4644c325784652882f7749c561a to your computer and use it in GitHub Desktop.
Installer Script for a new Mac
This file contains 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
#!/bin/bash | |
# DESCRIPTION | |
# Installs Homebrew software. | |
# EXECUTION | |
# XCode Command Line Tools | |
xcode-select --install | |
# Homebrew | |
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/[email protected]/.zprofile | |
eval "$(/opt/homebrew/bin/brew shellenv)" | |
#Babashka | |
brew install borkdude/brew/babashka | |
#fish | |
brew install fish | |
# Readline | |
brew install readline | |
#wget | |
brew install wget | |
# Tree | |
brew install tree | |
# Git | |
brew install git | |
# exa - advanced ls for unix | |
brew install exa | |
#hazel | |
brew install hazel --cask | |
#mpv | |
brew install mpv | |
#mps-youtube | |
brew install mps-youtube | |
#mas (Mac App Store command line tool) | |
brew install mas | |
printf "System - Reveal IP address, hostname, OS version, etc. when clicking the login window clock\n" | |
sudo defaults write /Library/Preferences/com.apple.loginwindow AdminHostInfo HostName | |
printf "System - Expand save panel by default\n" | |
defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true | |
printf "System - Disable the 'Are you sure you want to open this application?' dialog\n" | |
defaults write com.apple.LaunchServices LSQuarantine -bool false | |
printf "System - Disable window resume system-wide\n" | |
defaults write NSGlobalDomain NSQuitAlwaysKeepsWindows -bool false | |
printf "System - Disable smart quotes (not useful when writing code)\n" | |
defaults write NSGlobalDomain NSAutomaticQuoteSubstitutionEnabled -bool false | |
printf "System - Disable smart dashes (not useful when writing code)\n" | |
defaults write NSGlobalDomain NSAutomaticDashSubstitutionEnabled -bool false | |
printf "System - Avoid creating .DS_Store files on network volumes\n" | |
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true | |
printf "Keyboard - Automatically illuminate built-in MacBook keyboard in low light\n" | |
defaults write com.apple.BezelServices kDim -bool true | |
printf "Keyboard - Turn off keyboard illumination when computer is not used for 5 minutes\n" | |
defaults write com.apple.BezelServices kDimTime -int 300 | |
printf "Keyboard - Enable keyboard access for all controls\n" | |
defaults write NSGlobalDomain AppleKeyboardUIMode -int 3 | |
printf "Keyboard - Set a fast keyboard repeat rate\n" | |
defaults write NSGlobalDomain KeyRepeat -int 0 | |
printf "Trackpad - Enable tap to click for current user and the login screen\n" | |
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad Clicking -bool true | |
defaults -currentHost write NSGlobalDomain com.apple.mouse.tapBehavior -int 1 | |
defaults write NSGlobalDomain com.apple.mouse.tapBehavior -int 1 | |
printf "Trackpad - Use CONTROL (^) with scroll to zoom\n" | |
defaults write com.apple.universalaccess closeViewScrollWheelToggle -bool true | |
defaults write com.apple.universalaccess HIDScrollZoomModifierMask -int 262144 | |
printf "Trackpad - Follow keyboard focus while zoomed in\n" | |
defaults write com.apple.universalaccess closeViewZoomFollowsFocus -bool true | |
printf "Dock - Remove all default app icons\n" | |
defaults write com.apple.dock persistent-apps -array | |
printf "Dock - Automatically hide and show\n" | |
defaults write com.apple.dock autohide -bool true | |
printf "Dock - Remove the auto-hiding delay\n" | |
defaults write com.apple.Dock autohide-delay -float 0 | |
printf "iCloud - Save to disk by default\n" | |
defaults write NSGlobalDomain NSDocumentSaveNewDocumentsToCloud -bool false | |
printf "Finder - Show the $HOME/Library folder\n" | |
chflags nohidden $HOME/Library | |
printf "Finder - Show hidden files\n" | |
defaults write com.apple.finder AppleShowAllFiles -bool true | |
printf "Finder - Show filename extensions\n" | |
defaults write NSGlobalDomain AppleShowAllExtensions -bool true | |
printf "Finder - Disable the warning when changing a file extension\n" | |
defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false | |
printf "Finder - Show path bar\n" | |
defaults write com.apple.finder ShowPathbar -bool true | |
printf "Finder - Show status bar\n" | |
defaults write com.apple.finder ShowStatusBar -bool true | |
printf "Finder - Use list view in all Finder windows\n" | |
defaults write com.apple.finder FXPreferredViewStyle -string "Nlsv" | |
printf "Finder - Allow quitting via COMMAND+Q -- Doing so will also hide desktop icons\n" | |
defaults write com.apple.finder QuitMenuItem -bool true | |
printf "Finder - Disable the warning before emptying the Trash\n" | |
defaults write com.apple.finder WarnOnEmptyTrash -bool false | |
printf "Finder - Allow text selection in Quick Look\n" | |
defaults write com.apple.finder QLEnableTextSelection -bool true | |
printf "Safari - Set home page to 'about:blank' for faster loading\n" | |
defaults write com.apple.Safari HomePage -string "about:blank" | |
printf "Safari - Hide bookmarks bar\n" | |
defaults write com.apple.Safari ShowFavoritesBar -bool false | |
printf "Safari - Use Contains instead of Starts With in search banners\n" | |
defaults write com.apple.Safari FindOnPageMatchesWordStartsOnly -bool false | |
printf "Safari - Enable debug menu\n" | |
defaults write com.apple.Safari IncludeInternalDebugMenu -bool true | |
printf "Safari - Enable the Develop menu and the Web Inspector\n" | |
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 | |
printf "Safari - Add a context menu item for showing the Web Inspector in web views\n" | |
defaults write NSGlobalDomain WebKitDeveloperExtras -bool true | |
printf "Safari - Disable sending search queries to Apple.\n" | |
defaults write com.apple.Safari UniversalSearchEnabled -bool false | |
printf "Chrome - Prevent native print dialog, use system dialog instead\n" | |
defaults write com.google.Chrome DisablePrintPreview -boolean true | |
printf "Chrome - Disable swipe navigation\n" | |
defaults write com.google.Chrome.plist AppleEnableSwipeNavigateWithScrolls -bool FALSE | |
printf "TextEdit - Use plain text mode for new documents\n" | |
defaults write com.apple.TextEdit RichText -int 0 | |
printf "TextEdit - Open and save files as UTF-8 encoding\n" | |
defaults write com.apple.TextEdit PlainTextEncoding -int 4 | |
defaults write com.apple.TextEdit PlainTextEncodingForWrite -int 4 | |
printf "Disk Utility - Enable debug menu\n" | |
defaults write com.apple.DiskUtility DUDebugMenuEnabled -bool true | |
defaults write com.apple.DiskUtility advanced-image-options -bool true | |
printf "Time Machine - Prevent prompting to use new hard drives as backup volume\n" | |
defaults write com.apple.TimeMachine DoNotOfferNewDisksForBackup -bool true | |
printf "Printer - Expand print panel by default\n" | |
defaults write NSGlobalDomain PMPrintingExpandedStateForPrint -bool true | |
printf "Printer - Automatically quit printer app once the print jobs complete\n" | |
defaults write com.apple.print.PrintingPrefs "Quit When Finished" -bool true | |
printf "App Store - Enable the WebKit Developer Tools in the Mac App Store\n" | |
defaults write com.apple.appstore WebKitDeveloperExtras -bool true | |
printf "Disable Safari’s thubmnail cache for history and top sites" | |
defaults write com.apple.Safari DebugSnapshotsUpdatePolicy -int 2 | |
#1 password | |
brew install 1password --cask | |
#dropbox | |
brew install dropbox --cask | |
#commander one pro | |
brew install commander-one --cask | |
#alfred | |
brew install alfred --cask | |
#slack | |
brew install slack --cask | |
#discord | |
brew install discord --cask | |
#amethyst | |
brew install amethyst --cask | |
#bartender | |
brew install bartender --cask | |
#paragon ntfs | |
brew install paragon-ntfs --cask | |
#crossover | |
brew install crossover --cask | |
#chrome | |
brew install google-chrome --cask | |
#elmedia player | |
brew install elmedia-player --cask | |
#fission | |
brew install fission --cask | |
#karabiner-elements | |
brew install karabiner-elements --cask | |
#anki | |
brew install anki --cask | |
#honer | |
brew install honer --cask | |
#iterm | |
brew install iterm2 --cask | |
#kitty | |
brew install kitty --cask | |
# aseprite | |
brew install aseprite --cask | |
#omni disk sweeper | |
brew install omnidisksweeper --cask | |
#torbrowser | |
brew install torbrowser --cask | |
#github | |
brew install github-desktop --cask | |
#Air Video Hd | |
brew install air-video-server-hd --cask | |
#keyboard maestro | |
brew install keyboard-maestro --cask | |
#folx | |
brew install folx --cask | |
#firefox | |
brew install firefox --cask | |
#fantastical | |
brew install fantastical --cask | |
#vlc | |
brew install vlc --cask | |
#etcher - linux boot disk creator | |
brew install balenaetcher --cask | |
#visual studio code | |
brew install visual-studio-code --cask | |
# neovim | |
brew install neovim | |
#tunnelblick | |
brew install tunnelblick --cask | |
#splashtop personal | |
brew install splashtop-personal --cask | |
#pacifist | |
brew install pacifist --cask | |
#focus | |
brew install focus --cask | |
#free ruler | |
brew install free-ruler --cask | |
#mdrp | |
brew install mdrp --cask | |
#pia | |
#brew cask install private-internet-access | |
cd ~/Downloads | |
wget https://www.privateinternetaccess.com/openvpn/openvpn.zip | |
unzip openvpn.zip | |
rm openvpn.zip | |
mv openvpn ~/Desktop/Drag\ to\ tunnelblick | |
#Coherence | |
brew install coherence --cask | |
#mpv | |
brew install mpv --with-bundle --cask | |
#steam | |
brew install steam --cask | |
#openemu | |
brew install openemu --cask | |
#omnifocus | |
brew install omnifocus --cask | |
#tap fonts | |
brew tap caskroom/fonts | |
#font source code pro | |
brew install font-source-code-pro --cask | |
#clean up | |
brew cask cleanup | |
mas signin | |
#amphetamine | |
mas install 937984704 | |
#tweetbot | |
mas install 557168941 | |
#Wallpaperer | |
mas install 1102248738 | |
#Kindle | |
mas install 405399194 | |
#Scrivener | |
mas install 418889511 | |
#Airmail | |
mas install 918858936 | |
#Pages | |
mas install 409201541 | |
# Radium | |
mas install 597611879 | |
# The Unarchiver | |
mas install 425424353 | |
# Momentum | |
mas install 1030442215 | |
# Mactracker | |
mas install 430255202 | |
# Deliveries | |
mas install 924726344 | |
#Passepartout | |
mas install 1433648537 | |
# Dayone | |
mas install 1055511498 | |
# Speedtest by Ookla | |
mas install 1153157709 | |
# Run paragon-ntfs to finish installation | |
open /usr/local/Caskroom/paragon-ntfs/14/FSInstaller.app | |
#for paragon 15 | |
open /usr/local/Caskroom/paragon-ntfs/15/Install Paragon NTFS for Mac 15.app |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment