Simple project to automate Brew, MacOS, and NPM Packages.
- .bash_profile: Profile with handy command aliases and customization
- .gitconfig: Configures git to use osxkeychain credential helper and sets custom colors
- Brewfile: List of CLI tools (brew install {name}) and apps (brew cask install {name}) to install.
- brew.sh: Script to install Brew and all apps in the Brewfile file
- macos.sh: Script for better MacOS defaults
- npminstall.sh: Script to install common NPM utilities
- Clone the project locally (or fork)
> git clone https://github.com/thedanfernandez/Automate-MacOS-Setup.git
- Open Brewfile to add/edit/comment out CLI tools or apps. Use # to comment out or delete.
cask "postman" # REST-API tool
cask "skype" # Skype client
# cask "slack" # Slack client
cask "spectacle" # Windows like move / resize windows
You can run brew bundle list
to confirm your Brewfile is configured correctly
> brew bundle list
- Ensure any .sh files have execute permissions if needed
> chmod +x brew.sh
- Open the terminal and run the scripts (ensure you put "./" as a prefix to the )
> ./brew.sh
Note: npminstall.sh
expects NPM to be installed and must run as sudo
if packages are installed globally (-g) flag.
> sudo ./npminstall.sh
Brew can work to restore Apps you purchased in the app store. Unfortunately it will fail if the app has not been installed at least once. More information: Mac App Store GitHub project.
Add / edit configuration from .gitconfig and .bash_profile and add to your $HOME
directory
Assuming you are using zsh, you can run ohmyz.sh to install and copy ".zshrc" to your user directory.
> chmod +x ohmyz.sh