Setup instructions "rustled up" for coding on a Mac.
Note: this documentation has not been updated for the new M1 Chip. It will be updates soon (06.01.21).
It can take time to setup a new mac for development.
MacRustle provides super basic instructions to help with this process.
Quick Setup | General | Standard Installations | Iterm | ZSH | XCode | Package Managers | Homebrew | Node | NVM | Git | Cask | Mas
- Generally written
- Read before following/using instructions
- File an issue if you have a problem or idea
Note: This document has repetitive links and content to ensure
that steps are not missed and are considered appropriately.
Common development installations.
Listed below are key steps for the setup process.
Note: Each step should be step you've done before. Not regularly, but before.
If these steps feel very uncomfortable to you,
this list of instruction might not be yours to follow.
- Download and install your preferred commandline tool.
- Install Homebrew
- Install Xcode
- Using Homebrew:
Download and setup your preferred commandline app.
For this document, Iterm
with ZSH is recommended.
- Iterm Downloads
Download Iterm, a replacement commandline tool for Mac.
A Terminal Shell with useful features and a powerful plugin ecosystem.
Note: If you are running on MacOS Catalina (10.15.x), this step is done for you.
zsh
comes default with MacOS Catalina.
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
Setup natural typing
- Go to
preferences > profiles > keys
- Click
presets
- Select
natural typing
You can now move your cursor like in all other apps! πͺ
Setup autocomplete
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
- add
zsh-autocompletion
to plugins within your.zshrc
config
Xcode is a tool for development on Mac OS.
xcode-select --install
Install package managers. First Homebrew.
Install Homebrew.
# homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Use Homebrew to install Node.
brew install Node
Use NVM to manage Node version used within each environment.
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash
Git can be setup in multiple ways.
One way to setup Git is via Homebrew.
brew install git
Setup standard git defaults
# all push/pull
git config --global push.default current
git config --global pull.default current
git config --global user.name <user_name>
git config --global user.email <user_email>
git config --global core.editor <code_editor>
When working with a git client, like Github, a SSH Key and associated email are needed.
ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
Listed below are highly recommended Homebrew installs.
Cask installs Mac Apps via commandline.
brew install cask
Mas installs Mac Store Apps via commandline.
brew install mas
- Open ITerm (or another Shell).
- Copy and paste the following to your desired folder path
git clone git@github.com:yowainwright/macrustle.git
- Navigate to the macrustle folder, in example,
cd macrustle
. Type./bin/macrustle.sh
. Press return. - Follow the prompts.π¨
- Quick setup ends at installing
git
. To config git and an SSH Key, start here.