Quick Mac Development Setup for Terraform

By | 13 November, 2019

After having to run through this on a new computer, I figured I would document it for later use.

Install homebrew

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Install git

brew install git

Install zsh

brew install zsh

Install Oh My Zsh

sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

Edit plugins in .zshrc

plugins=(git colored-man-pages colorize pip python brew osx zsh-syntax-highlighting zsh-autosuggestions)

Update Theme

ZSH_THEME=pygmalion

Install dependencies

git clone https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting

Install Prezto

git clone --recursive https://github.com/sorin-ionescu/prezto.git "${ZDOTDIR:-$HOME}/.zprezto"

Update Prezto Modules in ~/.zpreztorc

zstyle ':prezto:load' pmodule \
'environment' \
'terminal' \
 'editor' \
'history' \
'directory' \
'spectrum' \
'utility' \
'completion' \
'git' \
'syntax-highlighting' \
'history-substring-search' \
'prompt'

Install terraform

brew install terraform

Install terraform linter

brew install tflint

Install VSCode

brew cask install visual-studio-code

VS Code Setup 

Install addons

  • Terraform
    • Enable Language Server
    • Install Language Server
  • GitLens
  • Settings Sync
  • TODO Highlight
  • vscode-icons

Leave a Reply