laptop-setup/mac is a script to set up a macOS environment for web & mobile development.
The script is idempotent: It can run multiple times on the same machine safely. It installs, upgrades, or skips packages based on what is already installed on the machine.
- macOS Sonoma (14.4) or higher
Note
Both Apple Silicon and Intel are supported
Older versions may work but aren't regularly tested. This script is tested on the most recent and its previous version.
Download, review, then execute the script:
curl --remote-name https://raw.githubusercontent.com/geniokua/laptop-setup/master/mac
less mac
bash mac 2>&1 | tee ~/laptop.log
Choose the additional packages when the prompts appear:
Do you want to install Web's dependencies? [y|N]
Do you want to install iOS's dependencies? [y|N]
Do you want to install Android's dependencies? [y|N]
Applications:
- 1Password the world’s most-loved password manager
- Brave Browser as the default browser
- Keybase to have encrypted team communication
- Postman a collaboration platform for API development
- Slack for general team communication
- VS Code code editor
- iTerm2 terminal
- TablePlus database GUI
Source Code versioning:
- git distributed revision control system
- Git Large File Storage an open-source Git extension for versioning large files
- Github CLI GitHub’s official command line tool
- Github Desktop GitHub’s official GUI tool
- Sourcetree git client
Terminal:
- iTerm2 a replacement for Terminal
- oh-my-zsh to spice up your shell
- spaceship zsh prompt
- Zsh as your shell
Utilities:
- asdf to manage all your runtime versions with one tool
- Bundler for managing Ruby libraries
- coreutils GNU File, Shell, and Text utilities
- gpg2 GNU Pretty Good Privacy (PGP) package
- Homebrew for managing operating system libraries
- mas CLI A simple CLI for the Mac App Store.
- libyaml YAML Parser
Tools:
- Docker for managing project dependencies
- ImageMagick for cropping and resizing images
- Yarn JavaScript package manager
- Postgresql Postgresql RDBMS
- Redis key-value store
Command Line Interfaces:
- AWS CLI official Amazon AWS command-line interface
- Heroku CLI for interacting with the Heroku API
- Phrase CLI for interacting with the Phrase API
Plugins for asdf:
- Elixir functional metaprogramming aware language built on Erlang VM
- Go programming language to build simple/reliable/efficient software
- Nodejs JavaScript runtime environment
- Ruby dynamic, open-source programming language with a focus on simplicity and productivity
- Python Python is a high-level, general-purpose programming language used in many areas, particularly in the data field & AI/ML
- Cocoapods a dependency manager for Cocoa projects
- Figma helps teams create, test, and ship better designs from start to finish
- Proxyman enables developers to observe and manipulate HTTP/HTTPS requests
- XCode iOS IDE
- Temurin OpenJDK from the Adoptium
- Android Studio Android IDE
- Android SDK Software Development Kit for Android
It should take less than 15 minutes to install (depending on your machine and internet speed).
- None.
It will omit all these dependencies above while running the script in the M1 machines.
Your ~/.laptop.local
is run at the end of the Laptop script.
Put your customizations there.
For example:
#!/bin/sh
cask "dropbox"
cask "firefox"
brew "tree"
Write your customizations such that they can be run safely more than once.
See the mac
script for examples.
Laptop functions such as fancy_echo
,brew_install_or_upgrade
,
and gem_install_or_update
can be used in your ~/.laptop.local
.
See the wiki for more customization examples.
Your last Laptop run will be saved to ~/laptop.log
.
Read through it to see if you can debug the issue yourself.
If not, copy the lines where the script failed into a
new GitHub Issue for us.
Or, attach the whole log file as an attachment.
Edit the mac
file.
Document in the README.md
file.
Follow shell style guidelines by using ShellCheck and Syntastic.
brew install shellcheck
It is free software, and may be redistributed under the terms specified in the LICENSE file.
This project is maintained by yours truly.
Inspired by the project of Thoughtbot & Nimble.