Laptop is a script to set up a macOS environment for web 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/gotecq/laptop/master/mac
less mac
bash mac 2>&1 | tee ~/laptop.logChoose the additional packages when the prompts appear:
Do you want to install Backend's dependencies? [y|N]
Do you want to install Mobile's dependencies? [y|N]
Do you want to install Frontend's dependencies? [y|N]
[Update later...]
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.
It is free software, and may be redistributed under the terms specified in the LICENSE file.