This repository contains scripts to help set up a development environment on a new macOS computer. The scripts install various tools and automate the process of cloning and updating repositories from GitHub, as well as installing commonly used applications.
Before running the scripts, make sure you have the following:
- macOS
- Terminal access
- Internet connection
- GitHub personal access token (for
clone-repos.sh
)
setup.sh
: Installs all the necessary development tools (Homebrew, NVM, Node.js, Yarn, React, React Native, Go, Python, Java, jq, and Composer).clone-repos.sh
: Clones all your GitHub repositories into theDocuments/GitHub
folder.update-repos.sh
: Updates all repositories in theDocuments/GitHub
folder by fetching and pulling the latest changes for the specified branches.install-apps.sh
: Installs commonly used applications like Postman, VSCode, Xcode, MS Office, LINE, Sourcetree, TablePlus, FileZilla, and Google Chrome.
The setup.sh
script installs all necessary tools for your development environment.
-
Clone the repository:
git clone https://github.com/yourusername/macOS-Dev-Setup.git cd macOS-Dev-Setup
-
Make the script executable:
chmod +x setup.sh
-
Run the script:
./setup.sh
This script will install:
- Homebrew
- NVM (Node Version Manager)
- Node.js (using NVM)
- Yarn
- Create React App and React Native CLI
- Go
- Python
- Java (OpenJDK)
- jq (for JSON processing)
- Composer (PHP dependency manager)
The clone-repos.sh
script will clone all your GitHub repositories into the Documents/GitHub
folder.
-
Install
jq
(if not already installed bysetup.sh
):brew install jq
-
Replace
your_github_username
andyour_personal_access_token
with your GitHub credentials in the script.
-
Make the script executable:
chmod +x clone-repos.sh
-
Run the script:
./clone-repos.sh
The script will fetch and clone all repositories associated with your GitHub account into the Documents/GitHub
directory.
The update-repos.sh
script will fetch and pull the latest changes for the specified branches (main
, master
, develop
, beta
, and nonprod
) in all repositories located in the Documents/GitHub
folder.
-
Make the script executable:
chmod +x update-repos.sh
-
Run the script:
./update-repos.sh
The script will loop through each repository in the Documents/GitHub
folder and attempt to update the branches if they exist.
The install-apps.sh
script installs common applications used for development and work, including Postman, VSCode, Xcode, MS Office, LINE, Sourcetree, TablePlus, FileZilla, and Google Chrome.
-
Make the script executable:
chmod +x install-apps.sh
-
Run the script:
./install-apps.sh
This script will install the following applications using Homebrew Cask:
- Postman
- Visual Studio Code (VSCode)
- Xcode
- Microsoft Office (Word, Excel, PowerPoint, etc.)
- LINE
- Sourcetree
- TablePlus
- FileZilla
- Google Chrome
This project is licensed under the MIT License.