Skip to content

Instantly share code, notes, and snippets.

@outrowender
Created September 20, 2021 14:17
Show Gist options
  • Save outrowender/3b82fde4a2d5eca0c73591e54712eff8 to your computer and use it in GitHub Desktop.
Save outrowender/3b82fde4a2d5eca0c73591e54712eff8 to your computer and use it in GitHub Desktop.
PowerShell 7 setup

code $PROFILE

Import-Module oh-my-posh
Set-PoshPrompt -Theme material

Get-PoshThemes -list

material.omp.json

{
  "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
  "blocks": [
    {
      "type": "prompt",
      "alignment": "left",
      "segments": [
        {
          "type": "path",
          "style": "plain",
          "foreground": "#56B6C2",
          "properties": {
            "style": "short"
          }
        },
        {
          "type": "git",
          "style": "plain",
          "foreground": "#D0666F",
          "properties": {
            "branch_icon": "",
            "display_status": false,
            "prefix": "<#5FAAE8>\uE0A0 </>",
            "postfix": "<#5FAAE8></> "
          }
        },
        {
          "type": "exit",
          "style": "plain",
          "foreground": "#DCB977",
          "properties": {
            "prefix": "\uF119",
            "display_exit_code": false,
            "postfix": " "
          }
        },
        {
          "type": "text",
          "style": "plain",
          "foreground": "#ffffff",
          "properties": {
            "prefix": "",
            "postfix": "",
            "text": "<#C591E8>\u276F</><#69FF94>\u276F</> "
          }
        }
      ]
    }
  ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment