JanDeDobbeleer / oh-my-posh

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

Invoke-Expression is used #4830

Closed hamzamg closed 5 months ago

hamzamg commented 5 months ago

Code of Conduct

What happened?

when open terminal in windows i get this warning and not run theme

2024-04-10 11_43_12-New Issue · JanDeDobbeleer_oh-my-posh

Warning PSAvoidUsingInvokeExpression Invoke-Expression is used. Please remove Invoke-Expression from script and find other options instead.

and when remove "| Invoke-Expression" 2024-04-10 11_43_33-user_profile ps1 - Visual Studio Code

Theme

bubblesline.omp.json named tit.omp with small change

What OS are you seeing the problem on?

Windows

Which shell are you using?

powershell

Log output

Version: 19.17.2

Shell: pwsh (7.4.1)

Prompt:

╭─ hamza    ~  ﮫ0ms⠀  51%                                                                                   pwsh   100  11:48:11 
╰─❯ 

Segments:

ConsoleTitle(true)                         -   3 ms
Session(true)                              -   0 ms
Path(true)                                 -   4 ms
Git(false)                                 -  29 ms
Node(false)                                -   0 ms
Go(false)                                  -   0 ms
Julia(false)                               -   0 ms
Python(false)                              -   0 ms
Ruby(false)                                -   0 ms
Azfunc(false)                              -   2 ms
Aws(false)                                 -   0 ms
Root(false)                                -   0 ms
Executiontime(true)                        -   0 ms
Php(false)                                 -   0 ms
Sysinfo(true)                              -   0 ms
Exit(true)                                 -   1 ms
Shell(true)                                -   0 ms
Ytm(false)                                 -   3 ms
Battery(true)                              -   3 ms
Time(true)                                 -   0 ms
Text(true)                                 -   0 ms
Exit(true)                                 -   0 ms

Run duration: 56.2126ms

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

Config path: C:\Users\kamiza\.config\powershell\tit.omp.json

Logs:

[DEBUG] 11:48:11.029 shell.go:Getenv:325 → NO DATA
[TRACE] 11:48:11.030 shell.go:Getenv(TERM_PROGRAM) - 1.2917ms
[DEBUG] 11:48:11.030 shell.go:Getenv:325 → C:\Users\kamiza\AppData\Local
[TRACE] 11:48:11.030 shell.go:Getenv(LOCALAPPDATA) - 0s
[TRACE] 11:48:11.030 shell_windows.go:CachePath() - 0s
[DEBUG] 11:48:11.031 shell.go:Getenv:325 → C:\Users\kamiza\.config\powershell\tit.omp.json
[TRACE] 11:48:11.031 shell.go:Getenv(POSH_THEME) - 0s
[DEBUG] 11:48:11.031 shell.go:Shell:593 → no shell name provided in flags, trying to detect it
[DEBUG] 11:48:11.037 shell.go:Shell:601 → process name: pwsh.exe
[TRACE] 11:48:11.037 shell.go:Shell() - 5.9638ms
[TRACE] 11:48:11.037 shell.go:resolveConfigPath() - 5.9638ms
[TRACE] 11:48:11.037 shell.go:Init() - 7.8414ms
[TRACE] 11:48:11.037 shell.go:Flags() - 0s
[TRACE] 11:48:11.039 config.go:loadConfig() - 1.9619ms
[TRACE] 11:48:11.039 shell.go:Flags() - 0s
[DEBUG] 11:48:11.039 shell.go:Getenv:325 → NO DATA
[TRACE] 11:48:11.039 shell.go:Getenv(OMP_CACHE_DISABLED) - 0s
[TRACE] 11:48:11.039 shell_windows.go:WindowsRegistryKeyValue(HKEY_CURRENT_USER\Software\Microsoft\Windows\DWM\ColorizationColor) - 0s
[TRACE] 11:48:11.039 shell.go:GOOS() - 0s
[TRACE] 11:48:11.039 shell.go:GOOS() - 0s
[TRACE] 11:48:11.039 shell.go:GOOS() - 0s
[TRACE] 11:48:11.039 shell.go:GOOS() - 0s
[TRACE] 11:48:11.039 shell.go:GOOS() - 0s
[TRACE] 11:48:11.039 shell.go:GOOS() - 0s
[TRACE] 11:48:11.039 shell.go:GOOS() - 0s
[TRACE] 11:48:11.039 shell.go:GOOS() - 0s
[TRACE] 11:48:11.039 shell.go:GOOS() - 0s
[TRACE] 11:48:11.039 shell.go:GOOS() - 0s
[TRACE] 11:48:11.039 shell.go:GOOS() - 0s
[TRACE] 11:48:11.039 shell.go:GOOS() - 0s
[TRACE] 11:48:11.039 shell.go:GOOS() - 0s
[TRACE] 11:48:11.039 shell.go:GOOS() - 0s
[TRACE] 11:48:11.039 shell.go:GOOS() - 0s
[TRACE] 11:48:11.039 shell.go:GOOS() - 0s
[TRACE] 11:48:11.039 shell.go:GOOS() - 0s
[TRACE] 11:48:11.039 shell.go:GOOS() - 0s
[TRACE] 11:48:11.039 shell.go:GOOS() - 0s
[DEBUG] 11:48:11.039 shell_windows.go:WindowsRegistryKeyValue:217 → ColorizationColor(DWORD): 0xC4064D6F
[TRACE] 11:48:11.039 shell.go:Shell() - 0s
[DEBUG] 11:48:11.039 shell.go:Getenv:325 → 7.4.1
[TRACE] 11:48:11.039 shell.go:Getenv(POSH_SHELL_VERSION) - 0s
[DEBUG] 11:48:11.039 debug.go:PrintDebug:22 → Segment: Title
[DEBUG] 11:48:11.039 text.go:Render:70 → Rendering template: {{ .Shell }} in {{ .Folder }}
[TRACE] 11:48:11.039 shell_windows.go:Root() - 0s
[TRACE] 11:48:11.039 shell.go:Shell() - 0s
[TRACE] 11:48:11.039 shell.go:StatusCodes() - 0s
[TRACE] 11:48:11.039 shell_windows.go:IsWsl() - 0s
[TRACE] 11:48:11.040 shell.go:GOOS() - 0s
[DEBUG] 11:48:11.040 shell.go:Pwd:355 → C:\Users\kamiza
[TRACE] 11:48:11.040 shell.go:Pwd() - 1.0016ms
[DEBUG] 11:48:11.040 shell_windows.go:58 → C:\Users\kamiza
[TRACE] 11:48:11.040 shell.go:GOOS() - 0s
[TRACE] 11:48:11.040 shell.go:GOOS() - 0s
[TRACE] 11:48:11.040 shell.go:GOOS() - 0s
[TRACE] 11:48:11.040 shell.go:GOOS() - 0s
[TRACE] 11:48:11.040 shell.go:GOOS() - 0s
[TRACE] 11:48:11.040 shell.go:GOOS() - 0s
[TRACE] 11:48:11.040 shell.go:GOOS() - 0s
[TRACE] 11:48:11.040 shell.go:GOOS() - 0s
[DEBUG] 11:48:11.040 shell.go:User:493 → hamza
[TRACE] 11:48:11.040 shell.go:User() - 0s
[DEBUG] 11:48:11.040 shell.go:Host:505 → HamzaMG
[TRACE] 11:48:11.040 shell.go:Host() - 0s
[TRACE] 11:48:11.040 shell.go:GOOS() - 0s
[DEBUG] 11:48:11.040 shell.go:Getenv:325 → NO DATA
[TRACE] 11:48:11.040 shell.go:Getenv(SHLVL) - 0s
[TRACE] 11:48:11.041 shell.go:TemplateCache() - 2.0001ms
[DEBUG] 11:48:11.042 shell.go:Getenv:325 → 36
[TRACE] 11:48:11.042 shell.go:Getenv(POSH_CURSOR_LINE) - 0s
[DEBUG] 11:48:11.042 shell.go:Getenv:325 → 1
[TRACE] 11:48:11.042 shell.go:Getenv(POSH_CURSOR_COLUMN) - 0s
[TRACE] 11:48:11.042 shell.go:Flags() - 0s
[TRACE] 11:48:11.042 shell.go:Flags() - 0s
[TRACE] 11:48:11.042 shell.go:Shell() - 0s
[TRACE] 11:48:11.042 shell.go:Shell() - 0s
[TRACE] 11:48:11.042 shell.go:Flags() - 0s
[DEBUG] 11:48:11.042 properties.go:GetString:28 → {{ .Code }}
[TRACE] 11:48:11.042 shell.go:Pwd() - 0s
[DEBUG] 11:48:11.042 shell_windows.go:58 → C:\Users\kamiza
[TRACE] 11:48:11.042 shell.go:GOOS() - 0s
[DEBUG] 11:48:11.042 segment.go:SetEnabled:529 → Segment: Exit
[TRACE] 11:48:11.042 shell.go:StatusCodes() - 0s
[DEBUG] 11:48:11.042 text.go:Render:70 → Rendering template: {{ .Code }}
[TRACE] 11:48:11.043 shell.go:Flags() - 0s
[DEBUG] 11:48:11.043 properties.go:GetString:28 → files
[TRACE] 11:48:11.043 shell.go:Pwd() - 0s
[DEBUG] 11:48:11.043 shell_windows.go:58 → C:\Users\kamiza
[TRACE] 11:48:11.043 shell.go:GOOS() - 0s
[DEBUG] 11:48:11.043 segment.go:SetEnabled:529 → Segment: Python
[DEBUG] 11:48:11.043 properties.go:GetStringArray:52 → extensions: [*.py *.ipynb pyproject.toml venv.bak]
[DEBUG] 11:48:11.043 properties.go:GetStringArray:52 → folders: [.venv venv virtualenv venv-win pyenv-win]
[DEBUG] 11:48:11.043 properties.go:GetBool:22 → home_enabled: false
[TRACE] 11:48:11.043 shell.go:Pwd() - 0s
[DEBUG] 11:48:11.043 shell_windows.go:58 → C:\Users\kamiza
[TRACE] 11:48:11.043 shell.go:Flags() - 0s
[TRACE] 11:48:11.043 shell.go:Pwd() - 0s
[TRACE] 11:48:11.043 shell.go:TemplateCache() - 0s
[DEBUG] 11:48:11.043 shell_windows.go:58 → C:\Users\kamiza
[TRACE] 11:48:11.043 shell.go:GOOS() - 0s
[DEBUG] 11:48:11.043 properties.go:GetBool:22 → always_enabled: true
[TRACE] 11:48:11.043 shell.go:TemplateCache() - 0s
[TRACE] 11:48:11.043 shell.go:Getenv(SSH_CONNECTION) - 0s
[DEBUG] 11:48:11.043 shell.go:Getenv:325 → NO DATA
[TRACE] 11:48:11.043 shell.go:Getenv(SSH_CLIENT) - 0s
[TRACE] 11:48:11.043 shell.go:Flags() - 0s
[TRACE] 11:48:11.043 shell.go:TemplateCache() - 0s
[TRACE] 11:48:11.043 shell.go:Flags() - 0s
[TRACE] 11:48:11.043 shell.go:Pwd() - 0s
[TRACE] 11:48:11.043 shell.go:Pwd() - 0s
[DEBUG] 11:48:11.043 shell_windows.go:58 → C:\Users\kamiza
[DEBUG] 11:48:11.043 shell_windows.go:58 → C:\Users\kamiza
[TRACE] 11:48:11.043 shell.go:GOOS() - 0s
[TRACE] 11:48:11.043 shell.go:GOOS() - 0s
[DEBUG] 11:48:11.043 segment.go:SetEnabled:529 → Segment: Path
[DEBUG] 11:48:11.043 segment.go:SetEnabled:529 → Segment: Ruby
[TRACE] 11:48:11.043 shell.go:Pwd() - 0s
[DEBUG] 11:48:11.043 properties.go:GetStringArray:52 → extensions: [*.rb Rakefile Gemfile]
[DEBUG] 11:48:11.043 properties.go:GetStringArray:52 → folders: []
[TRACE] 11:48:11.043 shell.go:Shell() - 0s
[DEBUG] 11:48:11.043 properties.go:GetBool:22 → home_enabled: false
[TRACE] 11:48:11.043 shell.go:Flags() - 0s
[TRACE] 11:48:11.043 shell.go:Pwd() - 0s
[DEBUG] 11:48:11.043 shell_windows.go:58 → C:\Users\kamiza
[TRACE] 11:48:11.043 shell.go:Flags() - 0s
[TRACE] 11:48:11.043 shell.go:Pwd() - 0s
[DEBUG] 11:48:11.043 shell_windows.go:58 → C:\Users\kamiza
[TRACE] 11:48:11.043 shell.go:GOOS() - 0s
[DEBUG] 11:48:11.043 segment.go:SetEnabled:529 → Segment: Azfunc
[DEBUG] 11:48:11.043 properties.go:GetBool:22 → mapped_locations_enabled: true
[DEBUG] 11:48:11.043 properties.go:GetString:28 → 
[DEBUG] 11:48:11.043 properties.go:GetString:28 → 
[TRACE] 11:48:11.044 shell.go:Flags() - 0s
[TRACE] 11:48:11.044 shell.go:Pwd() - 0s
[DEBUG] 11:48:11.044 shell_windows.go:58 → C:\Users\kamiza
[TRACE] 11:48:11.044 shell.go:GOOS() - 0s
[DEBUG] 11:48:11.044 segment.go:SetEnabled:529 → Segment: Aws
[DEBUG] 11:48:11.044 properties.go:GetBool:22 → display_default: false
[DEBUG] 11:48:11.044 shell.go:Getenv:325 → NO DATA
[TRACE] 11:48:11.044 shell.go:Getenv(AWS_VAULT) - 0s
[DEBUG] 11:48:11.044 shell.go:Getenv:325 → NO DATA
[TRACE] 11:48:11.044 shell.go:Getenv(AWS_DEFAULT_PROFILE) - 0s
[DEBUG] 11:48:11.044 shell.go:Getenv:325 → NO DATA
[TRACE] 11:48:11.044 shell.go:Getenv(AWS_PROFILE) - 0s
[DEBUG] 11:48:11.044 shell.go:Getenv:325 → NO DATA
[TRACE] 11:48:11.044 shell.go:Getenv(AWS_REGION) - 0s
[DEBUG] 11:48:11.044 shell.go:Getenv:325 → NO DATA
[TRACE] 11:48:11.044 shell.go:Getenv(AWS_DEFAULT_REGION) - 0s
[DEBUG] 11:48:11.044 shell.go:Getenv:325 → NO DATA
[TRACE] 11:48:11.044 shell.go:Getenv(AWS_CONFIG_FILE) - 0s
[DEBUG] 11:48:11.044 shell_windows.go:58 → C:\Users\kamiza
[ERROR] 11:48:11.044 shell.go:FileContent:463 → open C:\Users\kamiza/.aws/config: The system cannot find the file specified.
[TRACE] 11:48:11.044 shell.go:FileContent(C:\Users\kamiza/.aws/config) - 0s
[TRACE] 11:48:11.044 shell.go:Flags() - 0s
[TRACE] 11:48:11.044 shell.go:Pwd() - 0s
[DEBUG] 11:48:11.044 shell_windows.go:58 → C:\Users\kamiza
[TRACE] 11:48:11.044 shell.go:GOOS() - 0s
[DEBUG] 11:48:11.044 segment.go:SetEnabled:529 → Segment: Root
[TRACE] 11:48:11.044 shell_windows.go:Root() - 0s
[TRACE] 11:48:11.044 shell.go:Flags() - 0s
[TRACE] 11:48:11.044 shell.go:Pwd() - 0s
[DEBUG] 11:48:11.044 shell_windows.go:58 → C:\Users\kamiza
[TRACE] 11:48:11.044 shell.go:GOOS() - 0s
[DEBUG] 11:48:11.044 segment.go:SetEnabled:529 → Segment: Executiontime
[DEBUG] 11:48:11.044 properties.go:GetBool:22 → always_enabled: true
[TRACE] 11:48:11.044 shell.go:ExecutionTime() - 0s
[DEBUG] 11:48:11.044 properties.go:GetFloat64:34 → threshold: 500.000000
[DEBUG] 11:48:11.044 properties.go:GetString:28 → austin
[TRACE] 11:48:11.044 shell.go:TemplateCache() - 0s
[TRACE] 11:48:11.044 shell.go:Flags() - 0s
[TRACE] 11:48:11.044 shell.go:Pwd() - 0s
[DEBUG] 11:48:11.044 shell_windows.go:58 → C:\Users\kamiza
[TRACE] 11:48:11.044 shell.go:GOOS() - 0s
[DEBUG] 11:48:11.044 segment.go:SetEnabled:529 → Segment: Php
[DEBUG] 11:48:11.044 properties.go:GetStringArray:52 → extensions: [*.php composer.json composer.lock .php-version blade.php]
[DEBUG] 11:48:11.044 properties.go:GetStringArray:52 → folders: []
[DEBUG] 11:48:11.044 properties.go:GetBool:22 → home_enabled: false
[TRACE] 11:48:11.044 shell.go:Pwd() - 0s
[DEBUG] 11:48:11.044 shell_windows.go:58 → C:\Users\kamiza
[TRACE] 11:48:11.044 shell.go:Flags() - 0s
[DEBUG] 11:48:11.044 properties.go:GetInt:40 → precision: 2
[TRACE] 11:48:11.044 shell.go:Pwd() - 0s
[DEBUG] 11:48:11.044 shell_windows.go:58 → C:\Users\kamiza
[TRACE] 11:48:11.044 shell.go:GOOS() - 0s
[DEBUG] 11:48:11.044 segment.go:SetEnabled:529 → Segment: Sysinfo
[TRACE] 11:48:11.044 shell.go:TemplateCache() - 0s
[DEBUG] 11:48:11.045 properties.go:GetStringArray:52 → extensions: [host.json local.settings.json function.json]
[DEBUG] 11:48:11.045 properties.go:GetStringArray:52 → folders: []
[DEBUG] 11:48:11.045 properties.go:GetBool:22 → home_enabled: false
[TRACE] 11:48:11.045 shell.go:Pwd() - 0s
[DEBUG] 11:48:11.045 shell_windows.go:58 → C:\Users\kamiza
[TRACE] 11:48:11.045 shell.go:Flags() - 0s
[TRACE] 11:48:11.045 shell.go:Pwd() - 0s
[DEBUG] 11:48:11.045 shell_windows.go:58 → C:\Users\kamiza
[TRACE] 11:48:11.045 shell.go:GOOS() - 0s
[DEBUG] 11:48:11.045 segment.go:SetEnabled:529 → Segment: Node
[DEBUG] 11:48:11.045 properties.go:GetStringArray:52 → extensions: [*.js *.ts package.json .nvmrc pnpm-workspace.yaml .pnpmfile.cjs .npmrc .vue]
[DEBUG] 11:48:11.045 properties.go:GetStringArray:52 → folders: []
[DEBUG] 11:48:11.045 properties.go:GetBool:22 → home_enabled: false
[TRACE] 11:48:11.045 shell.go:Pwd() - 0s
[DEBUG] 11:48:11.045 shell_windows.go:58 → C:\Users\kamiza
[TRACE] 11:48:11.045 shell.go:Flags() - 0s
[TRACE] 11:48:11.045 shell.go:Pwd() - 0s
[DEBUG] 11:48:11.045 shell_windows.go:58 → C:\Users\kamiza
[TRACE] 11:48:11.045 shell.go:GOOS() - 0s
[DEBUG] 11:48:11.045 segment.go:SetEnabled:529 → Segment: Git
[TRACE] 11:48:11.045 shell.go:GOOS() - 0s
[DEBUG] 11:48:11.045 shell.go:Getenv:325 → C:\Users\kamiza\AppData\Local
[TRACE] 11:48:11.045 shell.go:Getenv(LOCALAPPDATA) - 0s
[TRACE] 11:48:11.047 shell.go:Flags() - 0s
[TRACE] 11:48:11.047 shell.go:Pwd() - 0s
[DEBUG] 11:48:11.047 shell_windows.go:58 → C:\Users\kamiza
[TRACE] 11:48:11.047 shell.go:GOOS() - 0s
[DEBUG] 11:48:11.047 segment.go:SetEnabled:529 → Segment: Go
[DEBUG] 11:48:11.047 properties.go:GetStringArray:52 → extensions: [*.go go.mod]
[DEBUG] 11:48:11.047 properties.go:GetStringArray:52 → folders: []
[DEBUG] 11:48:11.047 properties.go:GetBool:22 → home_enabled: false
[TRACE] 11:48:11.047 shell.go:Pwd() - 0s
[DEBUG] 11:48:11.047 shell_windows.go:58 → C:\Users\kamiza
[TRACE] 11:48:11.047 shell.go:Flags() - 0s
[TRACE] 11:48:11.047 shell.go:Pwd() - 0s
[DEBUG] 11:48:11.047 shell_windows.go:58 → C:\Users\kamiza
[TRACE] 11:48:11.047 shell.go:GOOS() - 0s
[DEBUG] 11:48:11.047 segment.go:SetEnabled:529 → Segment: Julia
[DEBUG] 11:48:11.047 properties.go:GetStringArray:52 → extensions: [*.jl]
[DEBUG] 11:48:11.047 properties.go:GetStringArray:52 → folders: []
[DEBUG] 11:48:11.047 properties.go:GetBool:22 → home_enabled: false
[TRACE] 11:48:11.047 shell.go:Pwd() - 0s
[DEBUG] 11:48:11.047 shell_windows.go:58 → C:\Users\kamiza
[DEBUG] 11:48:11.047 shell_windows.go:58 → C:\Users\kamiza
[TRACE] 11:48:11.047 shell.go:GOOS() - 0s
[TRACE] 11:48:11.047 shell.go:GOOS() - 0s
[DEBUG] 11:48:11.047 properties.go:GetString:28 → ~
[DEBUG] 11:48:11.047 properties.go:GetKeyValueMap:46 → mapped_locations: map[]
[TRACE] 11:48:11.047 shell.go:PathSeparator() - 0s
[TRACE] 11:48:11.047 shell.go:GOOS() - 0s
[TRACE] 11:48:11.047 shell.go:GOOS() - 0s
[TRACE] 11:48:11.047 shell.go:GOOS() - 0s
[TRACE] 11:48:11.047 shell.go:GOOS() - 0s
[TRACE] 11:48:11.047 shell.go:GOOS() - 0s
[TRACE] 11:48:11.047 shell.go:GOOS() - 0s
[TRACE] 11:48:11.047 shell.go:GOOS() - 0s
[TRACE] 11:48:11.047 shell.go:PathSeparator() - 0s
[TRACE] 11:48:11.047 shell.go:PathSeparator() - 0s
[TRACE] 11:48:11.047 shell.go:GOOS() - 0s
[TRACE] 11:48:11.047 shell.go:GOOS() - 0s
[TRACE] 11:48:11.047 shell.go:GOOS() - 0s
[TRACE] 11:48:11.047 shell.go:PathSeparator() - 0s
[TRACE] 11:48:11.047 shell.go:GOOS() - 0s
[TRACE] 11:48:11.048 shell.go:GOOS() - 0s
[TRACE] 11:48:11.048 shell.go:GOOS() - 0s
[TRACE] 11:48:11.048 shell.go:PathSeparator() - 0s
[TRACE] 11:48:11.048 shell.go:GOOS() - 0s
[TRACE] 11:48:11.048 shell.go:GOOS() - 0s
[TRACE] 11:48:11.048 shell.go:GOOS() - 0s
[TRACE] 11:48:11.048 shell.go:PathSeparator() - 0s
[TRACE] 11:48:11.048 shell.go:Pwd() - 0s
[TRACE] 11:48:11.048 shell_windows.go:IsWsl() - 0s
[TRACE] 11:48:11.048 shell.go:StackCount() - 0s
[DEBUG] 11:48:11.048 win32_windows.go:isWriteable:299 → not current user or in group
[DEBUG] 11:48:11.048 win32_windows.go:isWriteable:303 → current user is member of S-1-5-32-544
[DEBUG] 11:48:11.048 win32_windows.go:isWriteable:311 ↓
    WRITE_DAC
    WRITE_OWNER
    SYNCHRONIZE
    DELETE
    READ_CONTROL
[DEBUG] 11:48:11.048 win32_windows.go:isWriteable:313 → user has write access
[TRACE] 11:48:11.048 shell_windows.go:DirIsWritable() - 0s
[TRACE] 11:48:11.048 shell.go:TemplateCache() - 0s
[DEBUG] 11:48:11.075 shell.go:CommandPath:545 → C:\Program Files\Git\cmd\git.exe
[TRACE] 11:48:11.075 shell.go:CommandPath(git.exe) - 29.9118ms
[TRACE] 11:48:11.075 shell.go:HasCommand(git.exe) - 29.9118ms
[TRACE] 11:48:11.075 shell.go:Pwd() - 0s
[ERROR] 11:48:11.075 shell.go:HasParentFilePath:689 → CreateFile .git: The system cannot find the file specified.
[TRACE] 11:48:11.075 shell.go:HasParentFilePath(.git) - 0s
[DEBUG] 11:48:11.075 properties.go:GetBool:22 → fetch_bare_info: false
[DEBUG] 11:48:11.075 text.go:Render:70 → Rendering template: <parentBackground></>  
[TRACE] 11:48:11.075 shell.go:Shell() - 0s
[DEBUG] 11:48:11.075 text.go:Render:70 → Rendering template:  {{ .UserName }} 
[TRACE] 11:48:11.076 shell.go:TemplateCache() - 0s
[TRACE] 11:48:11.076 shell.go:Shell() - 0s
[DEBUG] 11:48:11.076 text.go:Render:70 → Rendering template:    {{ .Path }} 
[TRACE] 11:48:11.076 shell.go:TemplateCache() - 0s
[TRACE] 11:48:11.076 shell.go:Shell() - 0s
[DEBUG] 11:48:11.076 text.go:Render:70 → Rendering template: <transparent></> ﮫ{{ .FormattedMs }}⠀
[DEBUG] 11:48:11.076 text.go:Render:70 → Rendering template:   {{ round .PhysicalPercentUsed .Precision }}% 
[TRACE] 11:48:11.076 shell.go:TemplateCache() - 0s
[TRACE] 11:48:11.076 shell.go:Shell() - 0s
[TRACE] 11:48:11.076 shell.go:TemplateCache() - 0s
[TRACE] 11:48:11.076 shell.go:Shell() - 0s
[DEBUG] 11:48:11.076 text.go:Render:70 → Rendering template: diamond
[DEBUG] 11:48:11.076 text.go:Render:70 → Rendering template: powerline
[DEBUG] 11:48:11.076 text.go:Render:70 → Rendering template: powerline
[DEBUG] 11:48:11.076 text.go:Render:70 → Rendering template: powerline
[DEBUG] 11:48:11.076 text.go:Render:70 → Rendering template: powerline
[DEBUG] 11:48:11.076 text.go:Render:70 → Rendering template: powerline
[DEBUG] 11:48:11.076 text.go:Render:70 → Rendering template: powerline
[DEBUG] 11:48:11.076 text.go:Render:70 → Rendering template: powerline
[DEBUG] 11:48:11.076 text.go:Render:70 → Rendering template: powerline
[DEBUG] 11:48:11.076 text.go:Render:70 → Rendering template: powerline
[DEBUG] 11:48:11.076 text.go:Render:70 → Rendering template: powerline
[DEBUG] 11:48:11.076 text.go:Render:70 → Rendering template: plain
[DEBUG] 11:48:11.076 text.go:Render:70 → Rendering template: powerline
[DEBUG] 11:48:11.076 text.go:Render:70 → Rendering template: powerline
[DEBUG] 11:48:11.077 text.go:Render:70 → Rendering template: {{ if gt .Code 0 }}#e91e63{{ end }}
[TRACE] 11:48:11.077 shell.go:TemplateCache() - 0s
[DEBUG] 11:48:11.077 text.go:Render:70 → Rendering template: diamond
[TRACE] 11:48:11.077 shell.go:Shell() - 0s
[TRACE] 11:48:11.077 shell.go:Shell() - 0s
[TRACE] 11:48:11.077 shell.go:Shell() - 0s
[TRACE] 11:48:11.077 shell.go:Flags() - 0s
[TRACE] 11:48:11.077 shell.go:Pwd() - 0s
[DEBUG] 11:48:11.077 shell_windows.go:58 → C:\Users\kamiza
[TRACE] 11:48:11.077 shell.go:GOOS() - 0s
[DEBUG] 11:48:11.077 segment.go:SetEnabled:529 → Segment: Time
[DEBUG] 11:48:11.077 properties.go:GetString:28 → 15:04:05
[TRACE] 11:48:11.077 shell.go:TemplateCache() - 0s
[TRACE] 11:48:11.077 shell.go:Flags() - 0s
[TRACE] 11:48:11.077 shell.go:Pwd() - 0s
[DEBUG] 11:48:11.077 shell_windows.go:58 → C:\Users\kamiza
[TRACE] 11:48:11.077 shell.go:GOOS() - 0s
[DEBUG] 11:48:11.077 segment.go:SetEnabled:529 → Segment: Shell
[DEBUG] 11:48:11.077 properties.go:GetKeyValueMap:46 → mapped_shell_names: map[]
[TRACE] 11:48:11.077 shell.go:Shell() - 0s
[TRACE] 11:48:11.077 shell.go:Flags() - 0s
[TRACE] 11:48:11.077 shell.go:TemplateCache() - 0s
[TRACE] 11:48:11.077 shell.go:Flags() - 0s
[TRACE] 11:48:11.077 shell.go:Pwd() - 0s
[DEBUG] 11:48:11.077 shell_windows.go:58 → C:\Users\kamiza
[TRACE] 11:48:11.077 shell.go:GOOS() - 0s
[DEBUG] 11:48:11.077 segment.go:SetEnabled:529 → Segment: Ytm
[DEBUG] 11:48:11.077 properties.go:GetString:28 → http://127.0.0.1:9863
[DEBUG] 11:48:11.077 properties.go:GetInt:40 → api_url: 20
[TRACE] 11:48:11.077 shell.go:Flags() - 0s
[TRACE] 11:48:11.077 shell.go:Pwd() - 0s
[DEBUG] 11:48:11.077 shell_windows.go:58 → C:\Users\kamiza
[TRACE] 11:48:11.077 shell.go:GOOS() - 0s
[DEBUG] 11:48:11.077 segment.go:SetEnabled:529 → Segment: Battery
[TRACE] 11:48:11.077 shell_windows.go:IsWsl() - 0s
[DEBUG] 11:48:11.077 shell.go:HTTPRequest:645 ↓
    GET /query HTTP/1.1
    Host: 127.0.0.1:9863
    User-Agent: Go-http-client/1.1
    Accept-Encoding: gzip

[ERROR] 11:48:11.080 shell.go:HTTPRequest:649 → Get "http://127.0.0.1:9863/query": dial tcp 127.0.0.1:9863: connectex: No connection could be made because the target machine actively refused it.
[TRACE] 11:48:11.080 shell.go:HTTPRequest(http://127.0.0.1:9863/query) - 3.1045ms
[TRACE] 11:48:11.081 shell_windows_nix.go:BatteryState() - 3.4768ms
[DEBUG] 11:48:11.081 properties.go:GetString:28 →  
[TRACE] 11:48:11.081 shell.go:TemplateCache() - 0s
[DEBUG] 11:48:11.081 text.go:Render:70 → Rendering template:  {{ .CurrentDate | date .Format }} 
[DEBUG] 11:48:11.081 text.go:Render:70 → Rendering template: <#0077c2,transparent></>  {{ .Name }} <transparent,#0077c2></>
[DEBUG] 11:48:11.081 text.go:Render:70 → Rendering template:  {{ if not .Error }}{{ .Icon }}{{ .Percentage }}{{ end }}{{ .Error }} 
[TRACE] 11:48:11.082 shell.go:TemplateCache() - 0s
[TRACE] 11:48:11.082 shell.go:Shell() - 0s
[TRACE] 11:48:11.083 shell.go:TemplateCache() - 0s
[TRACE] 11:48:11.083 shell.go:Shell() - 0s
[TRACE] 11:48:11.083 shell.go:TemplateCache() - 0s
[TRACE] 11:48:11.083 shell.go:Shell() - 0s
[DEBUG] 11:48:11.083 text.go:Render:70 → Rendering template: plain
[DEBUG] 11:48:11.084 text.go:Render:70 → Rendering template: powerline
[DEBUG] 11:48:11.084 text.go:Render:70 → Rendering template: {{if eq "Charging" .State.String}}#40c4ff{{end}}
[TRACE] 11:48:11.084 shell.go:TemplateCache() - 0s
[DEBUG] 11:48:11.084 text.go:Render:70 → Rendering template: {{if eq "Discharging" .State.String}}#ff5722{{end}}
[TRACE] 11:48:11.084 shell.go:TemplateCache() - 0s
[DEBUG] 11:48:11.084 text.go:Render:70 → Rendering template: {{if eq "Full" .State.String}}#4caf50{{end}}
[TRACE] 11:48:11.085 shell.go:TemplateCache() - 0s
[DEBUG] 11:48:11.085 text.go:Render:70 → Rendering template: powerline
[DEBUG] 11:48:11.085 text.go:Render:70 → Rendering template: diamond
[TRACE] 11:48:11.085 shell.go:Shell() - 0s
[DEBUG] 11:48:11.085 shell_windows.go:TerminalWidth:111 → terminal width: 150
[TRACE] 11:48:11.085 shell_windows.go:TerminalWidth() - 0s
[TRACE] 11:48:11.085 shell.go:Shell() - 0s
[TRACE] 11:48:11.085 shell.go:Shell() - 0s
[TRACE] 11:48:11.085 shell.go:Shell() - 0s
[TRACE] 11:48:11.085 shell.go:Flags() - 0s
[DEBUG] 11:48:11.085 properties.go:GetString:28 → {{ .Code }}
[TRACE] 11:48:11.085 shell.go:Flags() - 0s
[TRACE] 11:48:11.085 shell.go:Pwd() - 0s
[TRACE] 11:48:11.085 shell.go:Pwd() - 0s
[DEBUG] 11:48:11.085 shell_windows.go:58 → C:\Users\kamiza
[TRACE] 11:48:11.085 shell.go:GOOS() - 0s
[DEBUG] 11:48:11.085 shell_windows.go:58 → C:\Users\kamiza
[DEBUG] 11:48:11.085 segment.go:SetEnabled:529 → Segment: Exit
[TRACE] 11:48:11.085 shell.go:GOOS() - 0s
[TRACE] 11:48:11.085 shell.go:StatusCodes() - 0s
[DEBUG] 11:48:11.085 segment.go:SetEnabled:529 → Segment: Text
[DEBUG] 11:48:11.085 text.go:Render:70 → Rendering template: {{ .Code }}
[TRACE] 11:48:11.085 shell.go:TemplateCache() - 0s
[TRACE] 11:48:11.085 shell.go:TemplateCache() - 0s
[DEBUG] 11:48:11.085 properties.go:GetBool:22 → always_enabled: true
[TRACE] 11:48:11.085 shell.go:TemplateCache() - 0s
[DEBUG] 11:48:11.085 text.go:Render:70 → Rendering template: ❯ 
[TRACE] 11:48:11.085 shell.go:Shell() - 0s
[DEBUG] 11:48:11.085 text.go:Render:70 → Rendering template: ╰─
[TRACE] 11:48:11.085 shell.go:Shell() - 0s
[DEBUG] 11:48:11.085 shell.go:Getenv:325 → NO DATA
[TRACE] 11:48:11.085 shell.go:Getenv(TERM_PROGRAM) - 0s
[DEBUG] 11:48:11.085 text.go:Render:70 → Rendering template: plain
[DEBUG] 11:48:11.085 text.go:Render:70 → Rendering template: {{ if gt .Code 0 }}#ef5350{{ end }}
[TRACE] 11:48:11.085 shell.go:TemplateCache() - 0s
[DEBUG] 11:48:11.085 text.go:Render:70 → Rendering template: plain
[TRACE] 11:48:11.085 shell.go:Shell() - 0s
[TRACE] 11:48:11.085 shell.go:Flags() - 0s
[TRACE] 11:48:11.085 shell.go:Shell() - 0s
[TRACE] 11:48:11.085 shell.go:Pwd() - 0s
[TRACE] 11:48:11.085 shell.go:Shell() - 0s
[TRACE] 11:48:11.085 shell.go:Shell() - 0s
[DEBUG] 11:48:11.085 shell.go:Getenv:325 → C:\Users\kamiza\AppData\Local
[TRACE] 11:48:11.085 shell.go:Getenv(LOCALAPPDATA) - 0s
[TRACE] 11:48:11.085 shell_windows.go:CachePath() - 0s
[TRACE] 11:48:11.085 shell.go:Flags() - 0s
JanDeDobbeleer commented 5 months ago

@hamzamg this isn't a bug but a configuration/security rule on your machine. Not familiar which one, but this has nothing to do with oh-my-posh. You need to allow it to bypass that rule for that line, otherwise oh-my-posh won't work.

github-actions[bot] commented 1 month 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.