Skip to content

thedanfernandez/Automate-MacOS-Setup

Repository files navigation

Automate MacOS Setup

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

Get Started

  1. Clone the project locally (or fork)
> git clone https://github.com/thedanfernandez/Automate-MacOS-Setup.git
  1. 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
  1. Ensure any .sh files have execute permissions if needed
> chmod +x brew.sh
  1. 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

mas or the Mac App Store command line

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.

.gitconfig and .bash_profile

Add / edit configuration from .gitconfig and .bash_profile and add to your $HOME directory

Setup zsh

Assuming you are using zsh, you can run ohmyz.sh to install and copy ".zshrc" to your user directory.

> chmod +x ohmyz.sh

Resources

About

Automate Brew, MacOS, and NPM Packages. Fork and customize!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published