Skip to content

Instantly share code, notes, and snippets.

@ArthurMbraga
Created August 5, 2026 00:01
Show Gist options
  • Select an option

  • Save ArthurMbraga/816644e5db1a93ba9d4970e3441b68fd to your computer and use it in GitHub Desktop.

Select an option

Save ArthurMbraga/816644e5db1a93ba9d4970e3441b68fd to your computer and use it in GitHub Desktop.
Unix/macOS dev environment setup

Unix Setup

Personal dev environment setup for macOS and Linux.

Zsh + Oh My Zsh

# Install zsh (Linux only — macOS already has it)
sudo apt-get install -y zsh

# Install Oh My Zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended

# Plugins
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting

Then set in ~/.zshrc:

plugins=(git zsh-autosuggestions zsh-syntax-highlighting)

Reload:

source ~/.zshrc

Git

git config --global user.name "Your Name"
git config --global user.email "you@example.com"
git config --global init.defaultBranch main

Node / nvm

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash
source ~/.zshrc
nvm install --lts

GitHub CLI

# macOS
brew install gh

# Linux
curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg
sudo chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null
sudo apt-get update && sudo apt-get install -y gh

gh auth login

macOS extras

  • LinearMouse — fix mouse acceleration/scrolling on macOS
brew install --cask linearmouse
  • Homebrew (if not installed)
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment