Terminal

This is a fairly simple and straightforward step by step guide to setup Oh My Posh and few other usefull utilities on Powershell.

I'll not deep dive and explain what does what & why install something. You can do a simple google to find out that. Good luck!

If you are on Windows 10, you'll most likely want to do the following steps first,

default-profile-powershell

Rest is same for Win 10 & 11,

  • Install a Nerd Fontarrow-up-right of your choice

    You can see preview of the fonts at https://www.programmingfonts.org/

  • Set your newly installed font as the default of Windows Terminal

    If you use terminal inside vscode, set value of "terminal.integrated.fontFamily" with your font

  • edit Powershell profile $PROFILE and paste the following

    Replace user-name with your Windows user name & theme-name with your preferred themearrow-up-right in the command Run code $PROFILE to open in VSCode or notepad $PROFILE to open in notepad

  • Import Terminal-Icons in $PROFILE

  • Import PSReadLine in $PROFILE

  • To get better list view and edit mode, paste the following in $PROFILE

PSReadLine

You can edit and remove commands from powershell history by modifying $env:APPDATA\Microsoft\Windows\PowerShell\PSReadLine\ConsoleHost_history.txt

Credits

  • https://0xdf.gitlab.io/2018/11/08/powershell-history-file.html

  • https://www.hanselman.com/blog/my-ultimate-powershell-prompt-with-oh-my-posh-and-the-windows-terminal

Last updated