Fancy Terminal Prompt
Settings and steps to enable fancy terminal prompt for Windows Terminal
Steps from this video.
Step 1: Install nerd fonts
- Download font from nerdfonts.com. For example, JetBrainsMono Nerd Font
- Extract archive
- Select all font files > Right click > Install for all users
Step 2: Configure Terminals to use installed font
Configure Windows Terminal
- Open Terminal settings > Defaults > Appearance
- Under Text > Font face - select the installed Nerd Mono font
- [Optional] Adjust Color scheme. (I selected "One Half Dark")
- [Optional] Adjust Transparency. (I selected 90% and enabled Acrylic material)
Configure VsCode Terminal
Note: This does not work the best with the font I've tried: JetBrainsMono Nerd Font. Maybe it'd work better with other fonts.
- Open VsCode settings
- Set
"terminal.integrated.fontFamily": "[Name of the Nerd Font]"
- Restart VsCode
Step 3: Setup Starship on Windows
- Install following Instructions for Windows - (using MSI installer is the easiest)
code $PROFILE
- Add this at the end:
$ENV:STARSHIP_CONFIG = "$HOME\.starship\starship.toml" $ENV:STARSHIP_DISTRO = "者 xcad" Invoke-Expression (&starship init powershell)
code $HOME\.starship\starship.toml
- Paste contents of Startship config file and save
- Restart Terminal
Step 4: Setup Startship on WSL2 Linux
- Install following Instructions for Linux
vim ~/.bashrc
- Add this at the end:
eval "$(starship init bash)"
source ~/.bashrc
mkdir -p ~/.config && touch ~/.config/starship.toml
vim ~/.config/starship.toml
- Paste contents of Startship config file and save