Skip to content

Instantly share code, notes, and snippets.

@renepardon
Created May 20, 2020 12:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save renepardon/797bf151d72459c462e681c0055038bf to your computer and use it in GitHub Desktop.
Save renepardon/797bf151d72459c462e681c0055038bf to your computer and use it in GitHub Desktop.
Configure zsh for MacOS with iTerm2 (but works also with Terminal!), antigen and oh-my-zsh with material design colors and agnoster theme

ZSH Setup

Install dependencies

sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" && \
cd Downloads && \
curl -O https://raw.githubusercontent.com/MartinSeeler/iterm2-material-design/master/material-design-colors.itermcolors

Go to iTerm2 > Preferences > Profiles > Colors Tab and select the material-design-colors.itermcolors file and set as default.

Additional fonts required for agnoster theme

git clone https://github.com/powerline/fonts.git --depth=1 ~/fonts && \
cd ~/fonts && \
./install.sh && \
cd .. && \
rm -rf ~/fonts

Go to iTerm2 > Preferences > Profiles > Text and select for example Noto Mono for Powerline and set as default

Install antigen

curl -L git.io/antigen > ~/antigen.zsh

Put the following at the end of ~/.zshrc and restart

source ~/antigen.zsh
antigen use oh-my-zsh
antigen bundle zsh-users/zsh-completions
antigen bundle zsh-users/zsh-autosuggestions
antigen theme agnoster
antigen apply
@renepardon
Copy link
Author

Make zsh default Shell on Debian:

chsh -s /bin/zsh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment