Terminal Setup

The setup I actually use on macOS — iTerm2 running Zsh with Powerlevel10k, a tmux workflow, Neovim, and a handful of modern CLI tools. Everything below mirrors my dotfiles.

Prerequisites

  1. 1

    Homebrew

    Package manager for macOS — installs everything below (brew.sh)

  2. 2

    iTerm2

    Terminal emulator (brew install --cask iterm2)

  3. 3

    Hack Nerd Font

    Patched font so icons and glyphs render in the prompt

  4. 4

    Zsh

    Modern shell — pre-installed on macOS

  5. 5

    Git

    Version control system

Install Required Packages

1.1

Install the CLI tools, prompt, and shell plugins:

brew install \
  powerlevel10k \
  zsh-autosuggestions \
  zsh-syntax-highlighting \
  neovim \
  tmux \
  eza \
  bat \
  fd \
  fzf \
  ripgrep \
  zoxide \
  lazygit \
  gh \
  thefuck \
  tldr \
  tree
1.2

Install iTerm2 and the Nerd Font:

brew install --cask \
  iterm2 \
  font-hack-nerd-font

Configure Zsh

2.1

Back up your existing .zshrc (if any):

[ -f ~/.zshrc ] && mv ~/.zshrc ~/.zshrc.backup
2.2

Create a new .zshrc and paste the configuration below:

nvim ~/.zshrc
2.3

Style the Powerlevel10k prompt with the interactive configurator (optional):

p10k configure

Configure tmux

3.1

Create the tmux config directory:

mkdir -p ~/.config/tmux
3.2

Create the config file:

nvim ~/.config/tmux/tmux.conf

.zshrc Configuration

tmux Configuration

Apply Configuration

1

Reload your shell (or use the reload-zsh alias):

source ~/.zshrc
2

Or simply restart your terminal

Done! Your terminal is now configured.

Source Repository

krishna-paulraj/dotfiles

Full configuration files, the tmux modules, and updates