Laptop is a script to set up a macOS laptop for web and mobile development.
It can be run multiple times on the same machine safely. It installs, upgrades, or skips packages based on what is already installed on the machine.
Download the script:
curl -o- -L https://raw.githubusercontent.com/broadlume/dev-machine/master/install | bash
macOS tools:
- Homebrew for managing operating system libraries.
Unix tools:
- Universal Ctags for indexing files for vim tab completion
- Git for version control
- [The Silver Searcher] for finding things in files
- Watchman for watching for filesystem events
- Zsh as your shell
GitHub tools:
- Hub for interacting with the GitHub API
Image tools:
- ImageMagick for cropping and resizing images
Programming languages, package managers, and configuration:
- ASDF for managing programming language versions
- Bundler for managing Ruby libraries
- Node.js and NPM, for running apps and installing JavaScript packages
- Ruby stable for writing general-purpose code
- Yarn for managing JavaScript packages
It should take less than 15 minutes to install (depends on your machine).
Your ~/.laptop.local
is run at the end of the Laptop script.
Put your customizations there.
For example:
#!/bin/sh
brew bundle --file=- <<EOF
brew "go"
EOF
fancy_echo "Cleaning up old Homebrew formulae ..."
brew cleanup
brew cask cleanup
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
and
gem_install_or_update
can be used in your ~/.laptop.local
.
Edit the mac
file.
Document in the README.md
file.
Follow shell style guidelines by using ShellCheck and [Syntastic].
brew install shellcheck