Home

Awesome

Windows-Terminal-DevEx-improvements

Sitecore branded Windows Termial and VS Code Theme and Profile to unlock helpful tooling for working with XM Cloud such as autocompletion, command history list and directory improvements. However this Theme and profile is Sitecore independent and can be used with any terminal related work.

Important Update

Please note that the oh-my-posh module is no longer supported. If you have installed the oh-my-posh module already check this migration path documentation: https://ohmyposh.dev/docs/migrating If you want to install oh-my-posh now for the first time, just proceed with this readme.

Preconditions

Install Windows Terminal

Install Powershell Version 7.7.2

Make Powershell 7.7.2 the standard shell

Install Oh My Posh

To install Oh My Posh you can check this documentation:

For Windows installation:

For more details check here: https://ohmyposh.dev/docs/installation/windows As I do not have winget installed

Test Oh My Posh

Install Nerd Fonts

Test

Get available Posh Themes (optional)

That step will download available Themes

Switch Theme (optional)

Use Sitecore branded theme and profile

Change the Theme

Copy Profile

Troubleshooting

  1. Check env variables The profile file is relying on the env variable POSH_THEMES_PATH. This one should have been provided and filled during the installation process. The theme path should point to: C:\Users<username>\AppData\Programs\oh-my-posh\themes. If it still does not find your theme path you can change the Microsoft.PowerShell_profile.ps1 file and use the absolute path in line 7. That should be C:\Users<username>\AppData\Local\Programs\oh-my-posh\themes

  2. Restart terminal especially when env variable changes are made, you need to restart the terminal application.

  3. Reload profile In some cases it can be necessary to reload your profile if you do not see the right design of your command prompt. Therefore you need to reload the profile. You can run . $profile