JanDeDobbeleer / oh-my-posh

The most customisable and low-latency cross platform/shell prompt renderer
https://ohmyposh.dev
MIT License
16.89k stars 2.36k forks source link

slow prompt (delay in showing the prompt between commands) #2457

Closed dorlugasigal closed 2 years ago

dorlugasigal commented 2 years ago

Code of Conduct

What happened?

slow prompt when using the Kubernetes segment

Theme

{
  "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
  "blocks": [
    {
      "alignment": "left",
      "segments": [
        {
          "background": "#ff479c",
          "foreground": "#ffffff",
          "leading_diamond": "\ue0b6",
          "trailing_diamond": "\ue0b0",
          "properties": {
            "folder_separator_icon": " \ue0b1 ",
            "home_icon": "~",
            "style": "folder"
          },
          "style": "diamond",
          "template": " \uf74a  {{ .Path }} ",
          "type": "path"
        },
        {
          "background": "#fffb38",
          "background_templates": [
            "{{ if or (.Working.Changed) (.Staging.Changed) }}#FF9248{{ end }}",
            "{{ if and (gt .Ahead 0) (gt .Behind 0) }}#ff4500{{ end }}",
            "{{ if gt .Ahead 0 }}#B388FF{{ end }}",
            "{{ if gt .Behind 0 }}#B388FF{{ end }}"
          ],
          "foreground": "#193549",
          "powerline_symbol": "\ue0b0",
          "properties": {
            "branch_max_length": 25,
            "fetch_stash_count": true,
            "fetch_status": true,
            "fetch_upstream_icon": true
          },
          "style": "powerline",
          "template": " {{ .UpstreamIcon }}{{ .HEAD }}{{ .BranchStatus }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }} ",
          "type": "git"
        },
        {
          "background": "#0077c2",
          "foreground": "#ffffff",
          "powerline_symbol": "\ue0b0",
          "style": "powerline",
          "template": " \ufd31 {{.Context}} :: {{if .Namespace}}{{.Namespace}}{{else}}default{{end}} ",
          "type": "kubectl"
        },
        {
          "type": "az",
          "style": "powerline",
          "powerline_symbol": "\uE0B0",
          "foreground": "#000000",
          "background": "#9ec3f0",
          "template": " \uFD03 {{ .Name }} "
        },
        {
          "background": "#83769c",
          "foreground": "#ffffff",
          "properties": {
            "always_enabled": true
          },
          "style": "plain",
          "template": "<transparent>\ue0b0</> \ufbab{{ .FormattedMs }}\u2800",
          "type": "executiontime"
        },
        {
          "background": "#00897b",
          "background_templates": [
            "{{ if gt .Code 0 }}#e91e63{{ end }}"
          ],
          "foreground": "#ffffff",
          "properties": {
            "always_enabled": true
          },
          "style": "diamond",
          "template": "<parentBackground>\ue0b0</> \ue23a ",
          "trailing_diamond": "\ue0b4",
          "type": "exit"
        }
      ],
      "type": "prompt"
    },
    {
      "alignment": "left",
      "newline": true,
      "segments": [
        {
          "foreground": "#007ACC",
          "style": "plain",
          "template": "\ue602 ",
          "type": "text"
        }
      ],
      "type": "prompt"
    }
  ],
  "console_title_template": "{{ .Shell }} in {{ .Folder }}",
  "final_space": true,
  "version": 2
}

What OS are you seeing the problem on?

Windows

Which shell are you using?

powershell

Log output

Version: 7.90.2

Segments:

ConsoleTitle(true)   -   1 ms - pwsh in Projects
path(true)           -   0 ms -    Projects 
git(false)           -   5 ms -
kubectl(true)        - 282 ms -  ﴱ docker-desktop :: default
az(true)             -   3 ms -  ﴃ TaKamara-CSE-Israel
executiontime(true)  -   0 ms -  ﮫ0ms⠀
exit(true)           -   0 ms -   
text(true)           -   0 ms - 

Run duration: 320.5397ms

Cache path: C:\Users\dorlugasigal\AppData\Local\oh-my-posh

Config path: C:\Users\dorlugasigal\OhMyPoshThemes\dlg.omp.json

Logs:

2022/06/29 19:16:30 debug: Getenv
C:\Users\dorlugasigal\AppData\Local
2022/06/29 19:16:30 Getenv duration: 0s, args: LOCALAPPDATA
2022/06/29 19:16:30 CachePath duration: 0s, args:
2022/06/29 19:16:30 debug: Getenv
C:\Users\dorlugasigal\OhMyPoshThemes\dlg.omp.json
2022/06/29 19:16:30 Getenv duration: 0s, args: POSH_THEME
2022/06/29 19:16:30 Shell duration: 17.3536ms, args:
2022/06/29 19:16:30 resolveConfigPath duration: 17.8593ms, args:
2022/06/29 19:16:30 Init duration: 18.8616ms, args:
2022/06/29 19:16:30 Flags duration: 0s, args:
2022/06/29 19:16:30 config.loadConfig duration: 1.611ms, args:
2022/06/29 19:16:30 Flags duration: 0s, args:
2022/06/29 19:16:30 debug: Getenv

2022/06/29 19:16:30 Getenv duration: 0s, args: OMP_CACHE_DISABLED
2022/06/29 19:16:30 Root duration: 0s, args:
2022/06/29 19:16:30 Shell duration: 0s, args:
2022/06/29 19:16:30 ErrorCode duration: 0s, args:
2022/06/29 19:16:30 IsWsl duration: 0s, args:
2022/06/29 19:16:30 debug: Pwd
C:\Projects
2022/06/29 19:16:30 Pwd duration: 0s, args:
2022/06/29 19:16:30 debug: Home
C:\Users\dorlugasigal
2022/06/29 19:16:30 PathSeparator duration: 0s, args:
2022/06/29 19:16:30 PathSeparator duration: 0s, args:
2022/06/29 19:16:30 PathSeparator duration: 0s, args:
2022/06/29 19:16:30 PathSeparator duration: 0s, args:
2022/06/29 19:16:30 PathSeparator duration: 0s, args:
2022/06/29 19:16:30 PathSeparator duration: 0s, args:
2022/06/29 19:16:30 PathSeparator duration: 0s, args:
2022/06/29 19:16:30 PathSeparator duration: 0s, args:
2022/06/29 19:16:30 PathSeparator duration: 0s, args:
2022/06/29 19:16:30 PathSeparator duration: 0s, args:
2022/06/29 19:16:30 debug: User
dorlugasigal
2022/06/29 19:16:30 User duration: 0s, args:
2022/06/29 19:16:30 debug: Host
DLG
2022/06/29 19:16:30 Host duration: 0s, args:
2022/06/29 19:16:30 GOOS duration: 0s, args:
2022/06/29 19:16:30 TemplateCache duration: 537.4µs, args:
2022/06/29 19:16:30 Flags duration: 0s, args:
2022/06/29 19:16:30 debug: Pwd
C:\Projects
2022/06/29 19:16:30 Pwd duration: 0s, args:
2022/06/29 19:16:30 debug: Home
C:\Users\dorlugasigal
2022/06/29 19:16:30 GOOS duration: 0s, args:
2022/06/29 19:16:30 debug: Pwd
C:\Projects
2022/06/29 19:16:30 Pwd duration: 0s, args:
2022/06/29 19:16:30 Flags duration: 0s, args:
2022/06/29 19:16:30 debug: Pwd
C:\Projects
2022/06/29 19:16:30 Pwd duration: 0s, args:
2022/06/29 19:16:30 debug: Home
C:\Users\dorlugasigal
2022/06/29 19:16:30 GOOS duration: 0s, args:
2022/06/29 19:16:30 GOOS duration: 0s, args:
2022/06/29 19:16:30 PathSeparator duration: 0s, args:
2022/06/29 19:16:30 PathSeparator duration: 0s, args:
2022/06/29 19:16:30 PathSeparator duration: 0s, args:
2022/06/29 19:16:30 PathSeparator duration: 0s, args:
2022/06/29 19:16:30 PathSeparator duration: 0s, args:
2022/06/29 19:16:30 PathSeparator duration: 0s, args:
2022/06/29 19:16:30 PathSeparator duration: 0s, args:
2022/06/29 19:16:30 PathSeparator duration: 0s, args:
2022/06/29 19:16:30 PathSeparator duration: 0s, args:
2022/06/29 19:16:30 PathSeparator duration: 0s, args:
2022/06/29 19:16:30 PathSeparator duration: 0s, args:
2022/06/29 19:16:30 PathSeparator duration: 0s, args:
2022/06/29 19:16:30 GOOS duration: 0s, args:
2022/06/29 19:16:30 IsWsl duration: 0s, args:
2022/06/29 19:16:30 StackCount duration: 0s, args:
2022/06/29 19:16:30 DirIsWritable duration: 0s, args:
2022/06/29 19:16:30 TemplateCache duration: 0s, args:
2022/06/29 19:16:30 TemplateCache duration: 0s, args:
2022/06/29 19:16:30 Shell duration: 0s, args:
2022/06/29 19:16:30 debug: Pwd
C:\Projects
2022/06/29 19:16:30 Pwd duration: 0s, args:
2022/06/29 19:16:30 debug: Home
C:\Users\dorlugasigal
2022/06/29 19:16:30 GOOS duration: 0s, args:
2022/06/29 19:16:30 GOOS duration: 0s, args:
2022/06/29 19:16:30 HasCommand duration: 5.6103ms, args: git.exe
2022/06/29 19:16:30 debug: Pwd
C:\Projects
2022/06/29 19:16:30 Pwd duration: 0s, args:
2022/06/29 19:16:30 error: HasParentFilePath
CreateFile C:\.git: The system cannot find the file specified.
2022/06/29 19:16:30 HasParentFilePath duration: 91.9µs, args: .git
2022/06/29 19:16:30 debug: Pwd
C:\Projects
2022/06/29 19:16:30 Pwd duration: 0s, args:
2022/06/29 19:16:30 debug: Home
C:\Users\dorlugasigal
2022/06/29 19:16:30 GOOS duration: 0s, args:
2022/06/29 19:16:30 HasCommand duration: 6.4027ms, args: kubectl
2022/06/29 19:16:30 debug: RunCommand
apiVersion: v1
clusters:
- cluster:
    certificate-authority-data: DATA+OMITTED
    server: https://kubernetes.docker.internal:6443
  name: docker-desktop
contexts:
- context:
    cluster: docker-desktop
    user: docker-desktop
  name: docker-desktop
current-context: docker-desktop
kind: Config
preferences: {}
users:
- name: docker-desktop
  user:
    client-certificate-data: REDACTED
    client-key-data: REDACTED
2022/06/29 19:16:30 RunCommand duration: 274.3728ms, args: kubectl config view --output yaml --minify
2022/06/29 19:16:30 TemplateCache duration: 0s, args:
2022/06/29 19:16:30 TemplateCache duration: 0s, args:
2022/06/29 19:16:30 Shell duration: 0s, args:
2022/06/29 19:16:30 debug: Pwd
C:\Projects
2022/06/29 19:16:30 Pwd duration: 0s, args:
2022/06/29 19:16:30 debug: Home
C:\Users\dorlugasigal
2022/06/29 19:16:30 GOOS duration: 0s, args:
2022/06/29 19:16:30 debug: Getenv

2022/06/29 19:16:30 Getenv duration: 0s, args: AZURE_CONFIG_DIR
2022/06/29 19:16:30 debug: Home
C:\Users\dorlugasigal
2022/06/29 19:16:30 debug: Home
C:\Users\dorlugasigal
2022/06/29 19:16:30 debug: HasFolder
true
2022/06/29 19:16:30 HasFolder duration: 0s, args: C:\Users\dorlugasigal\.azure
2022/06/29 19:16:30 debug: FileContent
{"installationId": "3e1589a0-e274-11ec-b284-1c4d709dceb5", "subscriptions": [{"id": "8c4b4cf7-182e-458e-8c48-88c2ddf9ccac", "name": "M365 Euclid Multi-Cloud Enablement", "state": "Enabled", "user": {"name": "dorlugasigal@microsoft.com", "type": "user"}, "isDefault": false, "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "environmentName": "AzureCloud", "homeTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "managedByTenants": []}, {"id": "54b875cc-a81a-4914-8bfd-1a36bc7ddf4d", "name": "MSFT-WindowsVirtualDesktop-01", "state": "Enabled", "user": {"name": "dorlugasigal@microsoft.com", "type": "user"}, "isDefault": false, "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "environmentName": "AzureCloud", "homeTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "managedByTenants": []}, {"id": "bac420ed-c6fc-4a05-8ac1-8c0c52da1d6e", "name": "IDEAs MS Reporting", "state": "Enabled", "user": {"name": "dorlugasigal@microsoft.com", "type": "user"}, "isDefault": false, "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "environmentName": "AzureCloud", "homeTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "managedByTenants": []}, {"id": "0cd6095b-b140-41ec-ad1d-32f2f7493386", "name": "1IS - One Integration Service - NonProduction", "state": "Enabled", "user": {"name": "dorlugasigal@microsoft.com", "type": "user"}, "isDefault": false, "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "environmentName": "AzureCloud", "homeTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "managedByTenants": []}, {"id": "c7c88325-5c89-488e-a557-65c0d66ff083", "name": "cavertes", "state": "Enabled", "user": {"name": "dorlugasigal@microsoft.com", "type": "user"}, "isDefault": false, "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "environmentName": "AzureCloud", "homeTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "managedByTenants": []}, {"id": "e4e06275-58d1-4081-8f1b-be12462eb701", "name": "CSR-CUSPOC-MST-Hiramfleitas", "state": "Enabled", "user": {"name": "dorlugasigal@microsoft.com", "type": "user"}, "isDefault": false, "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "environmentName": "AzureCloud", "homeTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "managedByTenants": [{"tenantId": "2f4a9838-26b7-47ee-be60-ccc1fdec5953"}]}, {"id": "bbe41737-1ade-44df-8e33-217f11b8b452", "name": "Service Profiler Development", "state": "Enabled", "user": {"name": "dorlugasigal@microsoft.com", "type": "user"}, "isDefault": false, "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "environmentName": "AzureCloud", "homeTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "managedByTenants": []}, {"id": "1163fbbe-27e7-4b0f-8466-195fe5417043", "name": "Python_AI_Tools_PM_Team_Sub", "state": "Enabled", "user": {"name": "dorlugasigal@microsoft.com", "type": "user"}, "isDefault": false, "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "environmentName": "AzureCloud", "homeTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "managedByTenants": [{"tenantId": "2f4a9838-26b7-47ee-be60-ccc1fdec5953"}]}, {"id": "8ae1955e-f748-4273-a507-10159ba940f9", "name": "SPO-CyrusB", "state": "Enabled", "user": {"name": "dorlugasigal@microsoft.com", "type": "user"}, "isDefault": false, "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "environmentName": "AzureCloud", "homeTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "managedByTenants": []}, {"id": "9b4236fe-df75-4289-bf00-40628ed41fd9", "name": "Customer Confidence Proof of Concepts", "state": "Enabled", "user": {"name": "dorlugasigal@microsoft.com", "type": "user"}, "isDefault": false, "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "environmentName": "AzureCloud", "homeTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "managedByTenants": []}, {"id": "d21a0e9f-5e29-4b39-8ba5-0e189bc5fe2d", "name": "Edge DevTools Client", "state": "Enabled", "user": {"name": "dorlugasigal@microsoft.com", "type": "user"}, "isDefault": false, "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "environmentName": "AzureCloud", "homeTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "managedByTenants": []}, {"id": "13723929-6644-4060-a50a-cc38ebc5e8b1", "name": "LinuxMdsd Test", "state": "Enabled", "user": {"name": "dorlugasigal@microsoft.com", "type": "user"}, "isDefault": false, "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "environmentName": "AzureCloud", "homeTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "managedByTenants": []}, {"id": "10d0b7c6-9243-4713-91a9-2730375d3a1b", "name": "ASutton Subscription", "state": "Enabled", "user": {"name": "dorlugasigal@microsoft.com", "type": "user"}, "isDefault": false, "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "environmentName": "AzureCloud", "homeTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "managedByTenants": [{"tenantId": "2f4a9838-26b7-47ee-be60-ccc1fdec5953"}]}, {"id": "3905431d-c062-4c17-8fd9-c51f89f334c4", "name": "Pytorch Build", "state": "Enabled", "user": {"name": "dorlugasigal@microsoft.com", "type": "user"}, "isDefault": false, "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "environmentName": "AzureCloud", "homeTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "managedByTenants": []}, {"id": "7fd08dcc-a653-4b0f-8f8c-4dac889fdda4", "name": "Code generate Test and Infra", "state": "Enabled", "user": {"name": "dorlugasigal@microsoft.com", "type": "user"}, "isDefault": false, "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "environmentName": "AzureCloud", "homeTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "managedByTenants": [{"tenantId": "2f4a9838-26b7-47ee-be60-ccc1fdec5953"}]}, {"id": "56207a5d-4746-4a2d-9f7f-c5ac77a5ddfd", "name": "Traffic manager Preview", "state": "Enabled", "user": {"name": "dorlugasigal@microsoft.com", "type": "user"}, "isDefault": false, "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "environmentName": "AzureCloud", "homeTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "managedByTenants": [{"tenantId": "2f4a9838-26b7-47ee-be60-ccc1fdec5953"}]}, {"id": "ca38bc19-cf50-48e2-bbe6-8c35b40212d8", "name": "Maps Mining Azure", "state": "Enabled", "user": {"name": "dorlugasigal@microsoft.com", "type": "user"}, "isDefault": false, "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "environmentName": "AzureCloud", "homeTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "managedByTenants": []}, {"id": "b2a328a7-ffff-4c09-b643-a4758cf170bc", "name": "AISC-DEV-02", "state": "Enabled", "user": {"name": "dorlugasigal@microsoft.com", "type": "user"}, "isDefault": false, "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "environmentName": "AzureCloud", "homeTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "managedByTenants": []}, {"id": "85b3dbca-5974-4067-9669-67a141095a76", "name": "Terraform Testing on Azure with TTL = 2 Days", "state": "Enabled", "user": {"name": "dorlugasigal@microsoft.com", "type": "user"}, "isDefault": false, "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "environmentName": "AzureCloud", "homeTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "managedByTenants": [{"tenantId": "027fe226-784c-4798-a157-5e0e7893424d"}]}, {"id": "8cff5d56-95fb-4a74-ab9d-079edb45313e", "name": "Skype-NetEM-STAGING", "state": "Enabled", "user": {"name": "dorlugasigal@microsoft.com", "type": "user"}, "isDefault": false, "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "environmentName": "AzureCloud", "homeTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "managedByTenants": [{"tenantId": "cdc5aeea-15c5-4db6-b079-fcadd2505dc2"}]}, {"id": "79f57c16-00fe-48da-87d4-5192e86cd047", "name": "TScienceGPU", "state": "Enabled", "user": {"name": "dorlugasigal@microsoft.com", "type": "user"}, "isDefault": false, "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "environmentName": "AzureCloud", "homeTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "managedByTenants": []}, {"id": "ae71ef11-a03f-4b4f-a0e6-ef144727c711", "name": "Bing MM Measurement", "state": "Enabled", "user": {"name": "dorlugasigal@microsoft.com", "type": "user"}, "isDefault": false, "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "environmentName": "AzureCloud", "homeTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "managedByTenants": [{"tenantId": "2f4a9838-26b7-47ee-be60-ccc1fdec5953"}]}, {"id": "9ec1d932-0f3f-486c-acc6-e7d78b358f9b", "name": "TScience", "state": "Enabled", "user": {"name": "dorlugasigal@microsoft.com", "type": "user"}, "isDefault": false, "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "environmentName": "AzureCloud", "homeTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "managedByTenants": [{"tenantId": "2f4a9838-26b7-47ee-be60-ccc1fdec5953"}]}, {"id": "eec2de82-6ab2-4a84-ae5f-57e9a10bf661", "name": "ServicesPortfolio MCS", "state": "Enabled", "user": {"name": "dorlugasigal@microsoft.com", "type": "user"}, "isDefault": false, "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "environmentName": "AzureCloud", "homeTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "managedByTenants": [{"tenantId": "2f4a9838-26b7-47ee-be60-ccc1fdec5953"}]}, {"id": "eef8b6d5-94da-4b36-9327-a662f2674efb", "name": "AISC-EngSys-01", "state": "Enabled", "user": {"name": "dorlugasigal@microsoft.com", "type": "user"}, "isDefault": false, "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "environmentName": "AzureCloud", "homeTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "managedByTenants": []}, {"id": "ad203158-bc5d-4e72-b764-2607833a71dc", "name": "Project Vienna Build", "state": "Enabled", "user": {"name": "dorlugasigal@microsoft.com", "type": "user"}, "isDefault": false, "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "environmentName": "AzureCloud", "homeTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "managedByTenants": [{"tenantId": "2f4a9838-26b7-47ee-be60-ccc1fdec5953"}]}, {"id": "d2c9544f-4329-4642-b73d-020e7fef844f", "name": "HPCScrub1", "state": "Enabled", "user": {"name": "dorlugasigal@microsoft.com", "type": "user"}, "isDefault": false, "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "environmentName": "AzureCloud", "homeTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "managedByTenants": []}, {"id": "8c2c7b23-848d-40fe-b817-690d79ad9dfd", "name": "Purview_Demo_PartnerSandbox", "state": "Enabled", "user": {"name": "dorlugasigal@microsoft.com", "type": "user"}, "isDefault": false, "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "environmentName": "AzureCloud", "homeTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "managedByTenants": [{"tenantId": "2f4a9838-26b7-47ee-be60-ccc1fdec5953"}]}, {"id": "29de2cfc-f00a-43bb-bdc8-3108795bd282", "name": "MSFT-Modern Device-Modern Mgmt-Imaging00", "state": "Enabled", "user": {"name": "dorlugasigal@microsoft.com", "type": "user"}, "isDefault": false, "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "environmentName": "AzureCloud", "homeTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "managedByTenants": []}, {"id": "7afc2d66-d5b4-4e84-970b-a782e3e4cc46", "name": "CLOUDBUILD-ANYBUILD-POC-01", "state": "Enabled", "user": {"name": "dorlugasigal@microsoft.com", "type": "user"}, "isDefault": false, "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "environmentName": "AzureCloud", "homeTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "managedByTenants": []}, {"id": "7d411d23-59e5-4e2e-8566-4f59de4544f2", "name": "ER: CE Security Service Operation Center", "state": "Enabled", "user": {"name": "dorlugasigal@microsoft.com", "type": "user"}, "isDefault": false, "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "environmentName": "AzureCloud", "homeTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "managedByTenants": []}, {"id": "0368444d-756e-4ca6-9ecd-e964248c227a", "name": "AnyBuild-InternalProdClusters", "state": "Enabled", "user": {"name": "dorlugasigal@microsoft.com", "type": "user"}, "isDefault": false, "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "environmentName": "AzureCloud", "homeTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "managedByTenants": []}, {"id": "cb9eb375-570a-4e75-b83a-77dd942bee9f", "name": "PPP_ACBB_ATS_AKS_NonProd", "state": "Enabled", "user": {"name": "dorlugasigal@microsoft.com", "type": "user"}, "isDefault": false, "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "environmentName": "AzureCloud", "homeTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "managedByTenants": []}, {"id": "009d0e9f-a42a-470e-b315-82496a88cf0f", "name": "Weather and Finance INT", "state": "Enabled", "user": {"name": "dorlugasigal@microsoft.com", "type": "user"}, "isDefault": false, "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "environmentName": "AzureCloud", "homeTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "managedByTenants": []}, {"id": "e686ef8c-d35d-4e9b-92f8-caaaa7948c0a", "name": "Applied Sciences Group Dev", "state": "Enabled", "user": {"name": "dorlugasigal@microsoft.com", "type": "user"}, "isDefault": false, "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "environmentName": "AzureCloud", "homeTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "managedByTenants": []}, {"id": "6f53185c-ea09-4fc3-9075-318dec805303", "name": "RPSAAS CSM Dogfood", "state": "Enabled", "user": {"name": "dorlugasigal@microsoft.com", "type": "user"}, "isDefault": false, "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "environmentName": "AzureCloud", "homeTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "managedByTenants": [{"tenantId": "33e01921-4d64-4f8c-a055-5bdaffd5e33d"}]}, {"id": "295b1672-4540-43e2-8c57-5286ede52732", "name": "BryanProjects", "state": "Enabled", "user": {"name": "dorlugasigal@microsoft.com", "type": "user"}, "isDefault": false, "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "environmentName": "AzureCloud", "homeTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "managedByTenants": []}, {"id": "dcbdac96-1896-478d-89fc-c95ed43f4596", "name": "pgattikoppul Projects", "state": "Enabled", "user": {"name": "dorlugasigal@microsoft.com", "type": "user"}, "isDefault": false, "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "environmentName": "AzureCloud", "homeTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "managedByTenants": []}, {"id": "3b2fda06-3ef6-454a-9dd5-994a548243e9", "name": "Microsoft Employee & Executive Communications", "state": "Enabled", "user": {"name": "dorlugasigal@microsoft.com", "type": "user"}, "isDefault": false, "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "environmentName": "AzureCloud", "homeTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "managedByTenants": [{"tenantId": "2f4a9838-26b7-47ee-be60-ccc1fdec5953"}]}, {"id": "8d7aebc0-448f-44dd-95c8-9b428040fee3", "name": "takamara-eladiw-PresidioPublicResources", "state": "Enabled", "user": {"name": "dorlugasigal@microsoft.com", "type": "user"}, "isDefault": false, "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "environmentName": "AzureCloud", "homeTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "managedByTenants": []}, {"id": "73a4ea93-d914-424d-9e64-28adf397e8e3", "name": "TaKamara-CSE-Israel", "state": "Enabled", "user": {"name": "dorlugasigal@microsoft.com", "type": "user"}, "isDefault": true, "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "environmentName": "AzureCloud", "homeTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "managedByTenants": [{"tenantId": "2f4a9838-26b7-47ee-be60-ccc1fdec5953"}]}, {"id": "a1920ebd-59b7-4f19-af9f-5e80599e88e4", "name": "Babel", "state": "Enabled", "user": {"name": "dorlugasigal@microsoft.com", "type": "user"}, "isDefault": false, "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "environmentName": "AzureCloud", "homeTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "managedByTenants": []}, {"id": "8c4b5b03-3b24-4ed0-91f5-a703cd91b412", "name": "Cosmos_C&E_Azure_AzureEngineeringSystems_100200", "state": "Enabled", "user": {"name": "dorlugasigal@microsoft.com", "type": "user"}, "isDefault": false, "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "environmentName": "AzureCloud", "homeTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "managedByTenants": []}]}
2022/06/29 19:16:30 FileContent duration: 551.1µs, args: C:\Users\dorlugasigal\.azure\azureProfile.json
2022/06/29 19:16:30 TemplateCache duration: 0s, args:
2022/06/29 19:16:30 TemplateCache duration: 0s, args:
2022/06/29 19:16:30 Shell duration: 0s, args:
2022/06/29 19:16:30 debug: Pwd
C:\Projects
2022/06/29 19:16:30 Pwd duration: 0s, args:
2022/06/29 19:16:30 debug: Home
C:\Users\dorlugasigal
2022/06/29 19:16:30 GOOS duration: 0s, args:
2022/06/29 19:16:30 ExecutionTime duration: 0s, args:
2022/06/29 19:16:30 TemplateCache duration: 0s, args:
2022/06/29 19:16:30 TemplateCache duration: 0s, args:
2022/06/29 19:16:30 Shell duration: 0s, args:
2022/06/29 19:16:30 debug: Pwd
C:\Projects
2022/06/29 19:16:30 Pwd duration: 0s, args:
2022/06/29 19:16:30 debug: Home
C:\Users\dorlugasigal
2022/06/29 19:16:30 GOOS duration: 0s, args:
2022/06/29 19:16:30 ErrorCode duration: 0s, args:
2022/06/29 19:16:30 TemplateCache duration: 0s, args:
2022/06/29 19:16:30 TemplateCache duration: 0s, args:
2022/06/29 19:16:30 Shell duration: 0s, args:
2022/06/29 19:16:30 TemplateCache duration: 0s, args:
2022/06/29 19:16:30 Flags duration: 0s, args:
2022/06/29 19:16:30 debug: Pwd
C:\Projects
2022/06/29 19:16:30 Pwd duration: 0s, args:
2022/06/29 19:16:30 debug: Home
C:\Users\dorlugasigal
2022/06/29 19:16:30 GOOS duration: 0s, args:
2022/06/29 19:16:30 TemplateCache duration: 0s, args:
2022/06/29 19:16:30 TemplateCache duration: 0s, args:
2022/06/29 19:16:30 Shell duration: 0s, args:
2022/06/29 19:16:30 debug: Getenv
C:\Users\dorlugasigal\AppData\Local
2022/06/29 19:16:30 Getenv duration: 0s, args: LOCALAPPDATA
2022/06/29 19:16:30 CachePath duration: 0s, args:
2022/06/29 19:16:30 Flags duration: 0s, args:
JanDeDobbeleer commented 2 years ago

@dorlugasigal that's kubernetes being slow, not oh-my-posh. It takes > 200ms to complete the command. That said, you can use parse_kubeconfig in the segment to parse the config file which is faster.

dorlugasigal commented 2 years ago

@dorlugasigal that's kubernetes being slow, not oh-my-posh. It takes > 200ms to complete the command. That said, you can use parse_kubeconfig in the segment to parse the config file which is faster.

though, why is parse_kubeconfig default to false?

JanDeDobbeleer commented 2 years ago

@dorlugasigal because that "could" have a negative impact due to not being tested sufficiently. I don't use this segment myself so flipping the switch could be an issue.

github-actions[bot] commented 8 months ago

This issue has been automatically locked since there has not been any recent activity (i.e. last half year) after it was closed. It helps our maintainers focus on the active issues. If you have found a problem that seems similar, please open a discussion first, complete the body with all the details necessary to reproduce, and mention this issue as reference.