Windows terminal
Windows terminal is a recent terminal for Windows, by Microsoft.
Features
- Tabs
- JSON config
- Multiple Shell profiles (even WSL if installed)
- Shorcuts
- Switch tabs Ctrl + Tab
Documentation
Installation
You can easily install it with scoop (from bucket extras). You can install it from Windows Store instead, if you like it.
scoop install windows-terminal
You will find Windows Terminal in startup menu, launch it and you will see the new terminal, click on โต and select Settings (Ctrl + ,), this will open JSON configuration. Any update will be applied directly.
Terminal configuration example
Profile
You can improve your current profile with some modules, so you need to find your current profile.
$PROFILE
Oh My Posh
- From ohmyposh.dev/docs
Optional: upgrade your PowerShell to 7+
sudo scoop install Meslo-NF ; scoop install https://github.com/JanDeDobbeleer/oh-my-posh/releases/latest/download/oh-my-posh.json
Update Microsoft.PowerShell_profile.ps1
, to find it, execute $PROFILE
and you will get the path
Invoke-Expression (oh-my-posh --init --shell pwsh --config "$(scoop prefix oh-my-posh)/themes/jandedobbeleer.omp.json")
Add "fontFace": "MesloLGM NF"
to Windows Terminal JSOn settings
{
"profiles": {
"list": [
{
"guid": "{79285a8e-036c-446f-8a9c-78994e34bf78}",
"fontFace": "MesloLGM NF"
}
]
}
}
scoop update oh-my-posh
oh-my-posh --print-shell
VS Code
Open JSON Settings in VS Code
{
"terminal.integrated.automationShell.windows": "Windows.Terminal.PowershellCore",
"terminal.integrated.fontFamily": "MesloLGM NF"
}
Update PowerShell
Download the Windows (x86) stable .msi version, update Settings JSON of Windows Terminal:
{
"profiles": {
"list": [
{
"guid": "{79285a8e-036c-446f-8a9c-78994e34bf78}",
// "commandline": "powershell.exe",
"commandline": "C:\\Program Files (x86)\\PowerShell\\7\\pwsh.exe"
}
]
}
}