MI
MacBook Development Environment Setup
This repo automates the setup of a development environment on macOS. It configures various tools and services commonly used by developers.
Features
- Installs Homebrew
- Configures Git
- Sets up GPG for commit signing
- Installs and configures Docker
- Sets up GitHub integration
- Configures npm
- Installs and configures Java
- Adds useful aliases to
.zshrc
Prerequisites
- macOS operating system
setup.ymlfile in the same directory as the script
Usage
- Create a
setup.ymlfile with the following structure:
git:
name: "Your Name"
email: "your.email@example.com"- Make the script executable:
chmod +x run.profile- Run the script:
./run.profileConfiguration Steps
The script performs the following steps:
- Installs Homebrew
- Configures Git with name and email from
setup.yml - Sets up GPG for commit signing and adds the key to GitHub
- Installs and starts Docker Desktop
- Sets up GitHub integration (SSH key and authentication)
- Configures npm with author details
- Installs and configures Java
- Adds useful aliases to
.zshrc
Functions
configure_git(): Sets up Git configurationsetup_gpg(): Configures GPG for commit signingconfigure_docker(): Installs and starts Docker Desktopsetup_github(): Sets up GitHub integrationconfigure_npm(): Configures npmconfigure_java(): Installs and configures Javaadd_aliases(): Adds useful aliases to.zshrc
Notes
- The script requires an active internet connection
- Some steps may require user interaction or password input
- Ensure you have necessary permissions to install software and modify system files
- Review the script before running to ensure it meets your specific needs
Customization
You can modify the script to add or remove steps based on your specific requirements. Each function can be commented out or modified in the main() function if not needed.