Skip to content

Instantly share code, notes, and snippets.

@johanvergeer
Last active February 4, 2020 14:14
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 johanvergeer/59327c185917df76f8f5a9449acb1781 to your computer and use it in GitHub Desktop.
Save johanvergeer/59327c185917df76f8f5a9449acb1781 to your computer and use it in GitHub Desktop.
My iTerm setup

This Gist describes how I setup iTerm

Basic setup

  1. Install Homebrew
  2. Install oh-my-zsh
  3. ssh-keygen

Powerlevel10K

Setup Powerlevel10k

  • Clone the powerlevel10k git repo:
$ git clone --depth=1 https://github.com/romkatv/powerlevel10k.git $ZSH_CUSTOM/themes/powerlevel10k
  • Add source ~/powerlevel10k/powerlevel10k.zsh-theme to ~/.zshrc
  • Set ZSH_THEME="powerlevel10k/powerlevel10k" in ~/.zshrc.
  • Reload ~/.zshrc:
source ~/.zshrc

When prompted to install fonts select y. When prompted to restart selecty and restart iTerm.

Run p10k configure

Pyenv

  • Install Pyenv
  • Add the following to .zshrc
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"

if command -v pyenv 1>/dev/null 2>&1;
then
eval "$(pyenv init -)"
fi
  • Install required Python versions with Pyenv
    1. pyenv install 3.6.10
    2. pyenv install 3.7.6
    3. pyenv install 3.8.1

Poetry

  • Install Poetry and follow the instructions given by the installer.
  • Make sure virtual envs are created in the project dir: poetry config --local virtualenvs.in-project true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment