English | Tiếng Việt
- You will need to download Terminal from the Microsoft Store.
- Download and install Nerd Fonts.
- Download and install App Installer to use
winget
commands. - Install Scoop for Neofech and Winfetch installastion.
Copy and run the command line by line in Terminal.
# Optional: Needed to run a remote script the first time
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
# Install Scoop
irm get.scoop.sh | iex
# Install git if you haven't already
scoop install git
Set Default profile as Windows PowerShell
Settings > Default profile > Windows PowerShell
But if you want to use PowerShell Core for extra features like autocomplete instead of using Windows PowerShell you can install it with winget
command or in Microsoft Store.
📝 Note
Use arrow keys for autocomplete
winget install --id Microsoft.Powershell --source winget
WindowsTerminal_DNLT9SzQ7K.mp4
Adjust some settings to suit you and choose Font face to CaskaydiaCove NF (Sorry CaskaydiaCove NF actually broken icons at some theme so use FiraCode Nerd Font instead) some other fonts may not render icons properly.
nerd_fonts.mp4
Add a 🎨 Color Scheme for Terminal, select the ones you like in Windows Terminal Themes and paste them in settings.json
.
color_scheme.mp4
📦 Install Oh My Posh
Oh My Posh is a prompt theme engine that enables prompt string beautification. Please ensure that you followed the previous instructions precisely because this engine needs your Terminal to utilize a Nerd Font.
# Open a PowerShell prompt and run the following command
winget install JanDeDobbeleer.OhMyPosh -s winget
# Used when your Oh My Posh theme is outdated
winget upgrade JanDeDobbeleer.OhMyPosh -s winget
Now close Terminal and open it again.
# Let's start with the default theme
oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH\jandedobbeleer.omp.json"
Run the command and copy the command it shows up and continue running.
default_themes.mp4
# Now let's pick your theme
Get-PoshThemes
# Pick your theme and run the command
oh-my-posh --init --shell pwsh --config <path-to-your-theme>
# Example
oh-my-posh init pwsh --config ~AppData\Local\Programs\oh-my-posh\themes\{theme-name}.omp.json | Invoke-Expression
your_theme.mp4
Since when opening a new Terminal window it will not have the Oh My Posh theme, so we will configure the PowerShell profile script so that every time we turn on Terminal, it will automatically use the theme we have selected.
# Create a PowerShell profile script if you don't have one
New-Item -Path $PROFILE -Type File -Force
# Open profile script with Notepad. Copy the command you used to initialize the theme earlier. Paste the command into the profile script and save it
notepad $PROFILE
profile_script.mp4
# Once added, reload your profile for the changes to take effect
. $PROFILE
Terminal-Icons is a PowerShell module to add file and folder icons to your PowerShell prompt. This module requires a Nerd Font to be installed and used in your Terminal.
# Install Terminal-Icons
Install-Module -Name Terminal-Icons -Repository PSGallery
# Import Terminal-Icons module into your PowerShell profile script
Import-Module Terminal-Icons
Code_0AHbD3JjoU.mp4
Both Neofetch and Winfetch are command-line system information utilities that display information about your operating system, software, and hardware in an aesthetic and visually pleasing way. But Winfetch will be more personalized, so if you want to be fast, you can use Neofetch.
# Install Neofetch
scoop install neofetch
# Run Neofetch
neofetch
neofetch.mp4
# Install Winfetch
scoop install winfetch
# Install PowerShellGet module if you don't have one
Install-Script -Name pwshfetch-test-1
Choose “Yes” for any prompts you encountered.
# Restart your Terminal. Then, run winfetch to see if it’s correctly installed
winfetch
winfetch.mp4
Because Windows Terminal cannot produce full quality graphics, the Windows logo to the left can be altered to a custom "image" that looks more like a low resolution pixel art.
⚠️ Important
Copy path to your image.
Go to this path to edit the config file:
C:\Users\%USERPROFILE%\.config\winfetch\config.ps1
custom_image.mp4
That's all the steps to make your Terminal more cutie. If you have any questions feel free to contact me (。•̀ᴗ-)✧.