Skip to content

Instantly share code, notes, and snippets.

@tonysneed
Last active January 14, 2022 12:27
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save tonysneed/9baf5b40e5b2f311e91431e811b4f35a to your computer and use it in GitHub Desktop.
Save tonysneed/9baf5b40e5b2f311e91431e811b4f35a to your computer and use it in GitHub Desktop.
Windows Terminal Setup

Windows Terminal Setup

References:

Prerequisites

  1. Set default terminal application to Windows Terminal.

    • Settings, Startup.
    terminal-startup
  2. Install Caskaydia Cove Nerd Font for Glyphs

    • Extract and copy to c:\windows\fonts
    • Settings, Profiles, PowerShell, Appearance, Fontface, select CaskaydiaCove NF
    • VS Code Settings, Text Editor, Font, add 'CaskaydiaCove NF',
  3. Install Oh My Posh for Windows.

    • Install Oh My Posh using winget with the command: winget install JanDeDobbeleer.OhMyPosh
    • Browse prompt themes: https://ohmyposh.dev/docs/themes
    • Choose a theme and edit your PowerShell $PROFILE: code $PROFILE
    • Paste (replacing theme): oh-my-posh --init --shell pwsh --config ~/AppData/Local/Programs/oh-my-posh/themes/jandedobbeleer.omp.json | Invoke-Expression
  4. Install Terminal Icons

    • Install-Module -Name Terminal-Icons -Repository PSGallery
    • code $profile, paste Import-Module -Name Terminal-Icons
  5. Optional: Install Oh My Posh on WSL Ubuntu.

    • Follow instructions for manual Linux installation.
    • Edit .bashrc file: code ~/.bashrc
    • Paste eval "$(oh-my-posh --init --shell bash --config ~/.poshthemes/jandedobbeleer.omp.json)"
    • Windows Terminal Settings, Profiles, Ubuntu, Appearance, Font face, select CaskaydiaCove NF.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment