Skip to content

A collection of dotfiles and and scripts to set up my new machines for development 💻

Notifications You must be signed in to change notification settings

frabonomi/dev-setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dev setup

This is the repo I use to set up a new machine and get it ready for development.

Prerequisites

Run this to make sure you're up to date and and you have XCode command line tools installed:

./osxprep.sh

Dotfiles

[TBD]

Mac OSX defaults

Tweak the operating system with better defaults:

./osx.sh

Please note that you may need to log out and log back in for some changes to take effect.

Homebrew

Install Homebrew:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

Install cli tools

./brew.sh

zsh

Install zsh:

brew install zsh

and set it as your default shell:

On M1-based machines:

chsh -s /opt/homebrew/bin/zsh

On Intel-based machines:

chsh -s /usr/local/bin/zsh

oh-my-zsh

Install oh-my-zsh:

sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

Install zsh-syntax-highlighting

Install a custom plugin for zsh to add syntax highlighting when typing in the shell following these instructions.

Git

Install Git:

brew install git

Set up Git SSH authentication with Github

  1. Generate a new key (reference):
    ssh-keygen -t ed25519 -C "[email protected]"
  2. Copy the SSH public key to your clipboard (reference)
    pbcopy < ~/.ssh/id_ed25519.pub
  3. Create a new SSH key on Github and paste your public key

Install apps

Install apps using:

./apps.sh

Set up dock icons

./dock.sh

Restore apps settings using Mackup

[TBD]

Web development

Install nvm and node

Use NVM (Node Version Manager) to be able to manage the installation of different Node versions on the same machine.

  • Install NVM using curl

    curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash

    This will also add a snippet in .zshrc file to load NVM.

  • Install Node. Here we install the long term support version

    nvm install --lts

References

About

A collection of dotfiles and and scripts to set up my new machines for development 💻

Topics

Resources

Stars

Watchers

Forks