Skip to content

Instantly share code, notes, and snippets.

@adojos
Last active March 13, 2023 21:36
Show Gist options
  • Save adojos/1f43e04c5c9d6b4e5d78462396a31090 to your computer and use it in GitHub Desktop.
Save adojos/1f43e04c5c9d6b4e5d78462396a31090 to your computer and use it in GitHub Desktop.
Oh-my-posh - nu4a Theme Config (Windows PowerShell v5.1) #powershell

Oh-my-posh - nu4a Theme Config Windows PowerShell v5.1

My 'nu4a Theme' json config for Oh-my-posh on Windows PowerShell

πŸ‘‰ PowerShell Profile Path

AllUsersAllHosts -       C:\Windows\System32\WindowsPowerShell\v1.0\profile.ps1

AllUsersCurrentHost -    C:\Windows\System32\WindowsPowerShell\v1.0\Microsoft.PowerShell_profile.ps1

CurrentUserAllHosts -    C:\Users\UserName\Documents\WindowsPowerShell\profile.ps1

CurrentUserCurrentHost - C:\Users\UserName\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1

nu4a-custom-tushar.omp.json

{
  "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
  "blocks": [
    {
      "alignment": "left",
      "segments": [
        {
          "background": "#ff3026",
          "foreground": "#100e23",
          "powerline_symbol": "ξ‚°",
          "properties": {
            "root_icon": ""
          },
          "style": "powerline",
          "type": "root"
        },
        {
          "background": "#cfcfc4",
          "foreground": "#100e23",
          "powerline_symbol": "ξ‚°",
          "style": "powerline",
          "type": "session"
        },
        {
          "background": "#ec9706",
          "foreground": "#100e23",
          "powerline_symbol": "ξ‚°",
          "properties": {
            "folder_icon": "ο„•",
            "folder_separator_icon": " ξ‚± ",
            "home_icon": "οŸ›",
            "style": "folder"
          },
          "style": "powerline",
          "type": "path"
        },
        {
          "background": "#95ffa4",
          "foreground": "#193549",
          "powerline_symbol": "ξ‚°",
          "style": "powerline",
          "type": "git"
        },
        {
          "background": "#906cff",
          "foreground": "#100e23",
          "powerline_symbol": "ξ‚°",
          "properties": {
            "prefix": "  "
          },
          "style": "powerline",
          "type": "python"
        }
      ],
      "type": "prompt"
    },
    {
      "alignment": "right",
      "segments": [
        {
          "background": "#ff4040",
          "foreground": "#ffffff",
          "leading_diamond": "",
          "properties": {
            "always_enabled": false,
            "display_exit_code": false,
            "prefix": " "
          },
          "style": "diamond",
          "trailing_diamond": "",
          "type": "exit"
        },
        {
          "background": "#2f2f2f",
          "foreground": "#fafafa",
          "leading_diamond": "ξ‚²",
          "properties": {
            "style": "austin"
          },
          "style": "diamond",
          "type": "executiontime"
        }
      ],
      "type": "rprompt"
    }
  ],
  "final_space": true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment