Pimp My PowerShell

smokku profile image Tomasz Sterna ・1 min read

Occasionally I need to use Windows to do development stuff.

Dissatisfied with the Windows CLI, I looked around to see how to tweak it to resemble the shell I am used to on Linux.
Turns out, that after installing a few modern tools you can have an usable shell on Windows.

Windows Terminal + PowerShell 7

1. Proper CLI application


Setup the Terminal application: Menu -> Settings

    "defaultProfile": "{uuid-of-the-Powershell-Core}",
    "profiles": {
        "defaults": {
            "fontFace": "Cascadia Code PL"

2. Proper Shell


Start PowerShell in Terminal and run the following commands:

Install-Module posh-git -Scope CurrentUser
Install-Module oh-my-posh -Scope CurrentUser
Install-Module PSFzf -Scope CurrentUser

Next run:

notepad $PROFILE

and in your $PROFILE file add:

Import-Module posh-git

Import-Module oh-my-posh
Set-Theme Agnoster

Remove-PSReadlineKeyHandler 'Ctrl+r'
Remove-PSReadlineKeyHandler 'Ctrl+t'
Import-Module PSFzf

3. Misc

  • VSCode setup to use PowerShell 7:
  "terminal.integrated.shell.windows": "C:\\Program Files\\PowerShell\\7\\pwsh.exe",

Anything more? Drop me a comment.

Posted on by:

smokku profile

Tomasz Sterna


I am a coder. I do hard-core C, Embedded JavaScript, C++/Qt/QML, Rust GameDev, Reason React, XMPP.


markdown guide