Install the Windows Terminal from the Microsoft Store.
Alternatively,
winget install --id Microsoft.WindowsTerminal -e
choco install microsoft-windows-terminal
choco upgrade microsoft-windows-terminal
Specifically install the *NF.TTF files to prevent confusion from installing all.
- Launch settings (ctrl+,)
- Scroll down to PROFILES
- Select DEFAULTS under Profiles
- Click Appearance (under Additional Settings)
- Assign Font Face
Cascadia Mono NFor Jetbrains - Color scheme, i'm using
Dark+
Save
To verify font installation:
echo " ⇡ ⇣ ✘ ⚡"
If you only see boxes with a lightning bolt, the setup is not correct. Note the web presentation should show boxes, but echo should show glphys.
The replacement to posh-git.
winget install Starship.Starship
Verify installation:
starship --version
Note: Starship by default folds git repository paths to the repo. Do not be surprised to see ...\MyRepo even when you're under the C:\Users\YOU\source\repos parent dirctory.
notepad $PROFILE
Confirm to create the profile ps1 file if it does not exist.
Append to your profile:
if (Get-Command starship -ErrorAction SilentlyContinue) {
Invoke-Expression (&starship init powershell)
}
Save and exit file.
Restart Windows Terminal
New-Item -ItemType Directory -Force -Path $HOME\.config | Out-Null
New-Item -ItemType File -Force -Path $HOME\.config\starship.toml | Out-Null
notepad $HOME\.config\starship.toml
Update content
add_newline = false
format = "$directory$git_branch$git_status$character"
[directory]
style = "bold"
truncation_length = 3
truncation_symbol = "…/"
repo_root_style = "bold cyan"
[git_branch]
symbol = " "
style = "bold purple"
[git_status]
style = "yellow"
format = "($style )"
conflicted = "⚔️"
untracked = "?"
modified = "!"
staged = "+"
renamed = "»"
deleted = "✘"
ahead = "⇡"
behind = "⇣"
diverged = "⇕"
[character]
success_symbol = "[➜](bold green)"
error_symbol = "[➜](bold red)"
Starship reloads its config on every prompt render, meaning: NO TERMINAL RESTARTS!
git config --global alias.co checkout
git config --global alias.ci commit
git config --global alias.st status
git config --global alias.br branch