Skip to content

Instantly share code, notes, and snippets.

@rhom6us
Last active October 28, 2024 03:05
Show Gist options
  • Save rhom6us/6d8ae6b9544da07dc106aa8689542145 to your computer and use it in GitHub Desktop.
Save rhom6us/6d8ae6b9544da07dc106aa8689542145 to your computer and use it in GitHub Desktop.
windows terminal setup
$theme = powerlevel10k_rainbow
$clink_config = "load(io.popen('oh-my-posh init cmd --config %POSH_THEMES_PATH%/$theme.omp.json'):read("*a"))()"
sudo pwsh
echo hi

Setup windows terminal

Install Stuff

  • From a command prompt:
winget install Git.Git Microsoft.WindowsTerminal Microsoft.VisualStudioCode gerardog.gsudo Microsoft.PowerShell chrisant996.Clink

Choose (but don't download) a Nerd Font (MesloLGM or CaskaydiaCove is pretty ubiquitous). In a powershell prompt (start > run > pwsh):

sudo oh-my-posh font install

Configure command prompt:

  • In a new command prompt: '''bat clink info '''
  • identify the settings directory and save the attached oh-my-posh.lua file there optionally, use a different theme if you like. Preview them here, find them on here system in %POSH_THEMES_PATH% Configure powershell prompt: In a powershell prompt (start > run > pwsh): notepad $profile save the following in the file that just opened (if you chose a different theme in the previous step, apply it here too) oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH/powerlevel10k_rainbow.omp.json" | Invoke-Expression do the same thing for the admin profile: sudo pwsh notepad $profile

Configure apps: Open up Windows Terminal and open the settings page (ctrl+comma). Find the font settings and set it to whatever you chose: image.png Make sure to click save in the bottom right. Optionally configure Visual Studio, VSCode, and whatever else to use that font.

Everything should look like this now: image.png

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