Powerline fonts codepoints
Do your Linux source code/git work in the Linux filesystem for speed until WSL2 gets the file system faster under /mnt.Īt this point your Ubuntu/WSL prompt will look awesome as well!įonts look weird? Uh oh! Step Three - Get a better font However, if your source is under /mnt/c or /mnt anywhere, the git calls being made to populate the prompt are super slow.
#Powerline fonts codepoints code
GOTCHA: If you are using WSL2, it'll be lightning fast with git prompts if your source code is in your Ubuntu/Linux mount, somewhere under ~/. PROMPT_COMMAND="_update_ps1 $PROMPT_COMMAND" You may already have a GOPATH so be aware. Go get -u /justjanne/powerline-goĪdd this to your ~/.bashrc. I just installed Go, then installed powerline-go with go get.
I like Powerline-Go for it's easy defaults. There's a number of choices for Powerline or Powerline-like prompts from Ubuntu. I like Agnoster, Paradox, or Fish, myself. It's actually the name of a theme and you can (and should!) pick the theme that makes you happy and use that theme's name here. Then run "notepad $PROFILE" and add these lines to the end: Import-Module posh-git When you run Install-Module for the first time you'll get a warning that you're downloading and installing stuff from the internet so follow the prompts appropriately.Īlso get PSReadline if you're on PowerShell Core: Install-Module -Name PSReadLine -AllowPrerelease -Scope CurrentUser -Force -SkipPublisherCheck You can also use PowerShell on Linux too, so be aware. Run these commands from PowerShell or PowerShell Core. Install-Module oh-my-posh -Scope CurrentUser Install-Module posh-git -Scope CurrentUser This also assumes you've installed Git for Windows.
#Powerline fonts codepoints install
Per these directions, install Posh-Git and Oh-My-Posh. Step Two for PowerShell - Posh-Git and Oh-My-Posh Note that if you were an early adopter of the Windows Terminal and you've released updated beyond 0.5, I'd recommend you delete or zero-out your profiles.json and let the Terminal detect and automatically recreate your profiles.json. You can also get it from GitHub's releases but I recommend the store because it'll stay up to date automatically.
Get Windows Terminal free from the Store. I've blogged about Patching the new Cascadia Code to include Powerline Glyphs and other Nerd Fonts for the Windows Terminal but folks have asked very specifically, how do I make my prompt look like that? Step One - Get the Terminal