Setting up MacOS

Posted on Dec 25, 2020

Basic Setup

/bin/bash -c "$(curl -fsSL"

brew update

brew install git vim go python

curl >

sudo python

Installing node

brew install nvm

nvm install node

npm i yarn -g

To use legacy versions of node

  • For a session
nvm install v1X.XX.X
nvm use v1X.XX.X
  • Changing the default node version
nvm default alias v1X.XX.X

Installing postgres

brew install postgres

brew services enable postgresql

brew services start postgresql

Installing mysql

brew install mysql

brew services enable mysql

brew services start mysql

Configuring git

ssh-keygen -t ed25519 -C ""

eval "$(ssh-agent -s)"

vim ~/.ssh/config

Paste the following

Host *
  AddKeysToAgent yes
  UseKeychain yes
  IdentityFile ~/.ssh/id_ed25519
ssh-add -K ~/.ssh/id_ed25519

pbcopy < ~/.ssh/

Add the new shh key

git config --global "ahampriyanshu"

git config --global ""

Switching to zsh

brew install zsh

sh -c "$(curl -fsSL"

chsh -s `which zsh`

git clone ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting

git clone $ZSH_CUSTOM/plugins/zsh-autosuggestions

source ~/.zshrc

git clone --depth 1 ~/.fzf && ~/.fzf/install


brew install --cask visual-studio-code

npm i -g nodemon

pip3 install youtube-dl orange3