Skip to content

Instantly share code, notes, and snippets.

@emilyparkes
Last active November 12, 2023 22:40
Show Gist options
  • Save emilyparkes/f8d4da6f1746ec3e15f65be5a3f495bc to your computer and use it in GitHub Desktop.
Save emilyparkes/f8d4da6f1746ec3e15f65be5a3f495bc to your computer and use it in GitHub Desktop.

Terminal

Prerequisites

  • Install Homebrew
    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

  • Install iTerm2 and git

brew install --cask iterm2  
brew install git
  • Install Oh My Zsh
    $ sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

Theme

  • I use Fira Code font.
    In the downloaded TTF folder

    • Select all font files
    • Right click and select Open (alternatively Open With Font Book)
    • Select "Install Font"

    or

    Use brew and cask:
    Not officially supported, might install outdated version

    brew tap homebrew/cask-fonts  
    brew install --cask font-fira-code  
    
  • Install powerlevel10k theme
    git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k

  • In ~/.zshrc set the ZSH theme to use:
    ZSH_THEME="powerlevel10k/powerlevel10k"

  • I have custom plugins in my ~/.zshrc

plugins=(
  git zsh-autosuggestions
)
  • Restart your terminal with Zsh

  • Now you can run
    p10k configure

My Custom ~/.zshrc settings

POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(dir vcs)
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(time date battery)
POWERLEVEL9K_SHORTEN_DIR_LENGTH=2

VS Code

  • installed Eslint
  • installed vscode-icons
  • installed Git-Lens
  • installed Bracket Pair Coloriser
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment