JanDeDobbeleer / oh-my-posh

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

Settings are gone after closing the terminal #5166

Closed darkred closed 2 months ago

darkred commented 2 months ago

Code of Conduct

What happened?

I have auto_upgrade and disable_notice set to true in settings. However, when I open a new pwsh session (in my case 7.4.3) inside windows terminal, if there's a new version available and gets downloaded, settings are gone after closing the terminal.

STR

Theme

The entire jandedobbeleer.omp.json config file (click to expand): ```log { "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", "blocks": [ { "alignment": "left", "segments": [ { "background": "#c386f1", "foreground": "#ffffff", "leading_diamond": "\ue0b6", "style": "diamond", "template": " {{ .UserName }} ", "trailing_diamond": "\ue0b0", "type": "session" }, { "background": "#ff479c", "foreground": "#ffffff", "powerline_symbol": "\ue0b0", "properties": { "folder_separator_icon": " \ue0b1 ", "home_icon": "~", "style": "folder" }, "style": "powerline", "template": " \uea83 {{ .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", "leading_diamond": "\ue0b6", "powerline_symbol": "\ue0b0", "properties": { "branch_max_length": 25, "fetch_stash_count": true, "fetch_status": true, "fetch_upstream_icon": true }, "style": "powerline", "template": " {{ .UpstreamIcon }}{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ 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 }} \ueb4b {{ .StashCount }}{{ end }} ", "trailing_diamond": "\ue0b4", "type": "git" }, { "background": "#6CA35E", "foreground": "#ffffff", "powerline_symbol": "\ue0b0", "properties": { "fetch_version": true }, "style": "powerline", "template": " \ue718 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }} ", "type": "node" }, { "background": "#8ED1F7", "foreground": "#111111", "powerline_symbol": "\ue0b0", "properties": { "fetch_version": true }, "style": "powerline", "template": " \ue626 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} ", "type": "go" }, { "background": "#4063D8", "foreground": "#111111", "powerline_symbol": "\ue0b0", "properties": { "fetch_version": true }, "style": "powerline", "template": " \ue624 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} ", "type": "julia" }, { "background": "#FFDE57", "foreground": "#111111", "powerline_symbol": "\ue0b0", "properties": { "display_mode": "files", "fetch_virtual_env": false }, "style": "powerline", "template": " \ue235 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} ", "type": "python" }, { "background": "#AE1401", "foreground": "#ffffff", "powerline_symbol": "\ue0b0", "properties": { "display_mode": "files", "fetch_version": true }, "style": "powerline", "template": " \ue791 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} ", "type": "ruby" }, { "background": "#FEAC19", "foreground": "#ffffff", "powerline_symbol": "\ue0b0", "properties": { "display_mode": "files", "fetch_version": false }, "style": "powerline", "template": " \uf0e7{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} ", "type": "azfunc" }, { "background_templates": [ "{{if contains \"default\" .Profile}}#FFA400{{end}}", "{{if contains \"jan\" .Profile}}#f1184c{{end}}" ], "foreground": "#ffffff", "powerline_symbol": "\ue0b0", "properties": { "display_default": false }, "style": "powerline", "template": " \ue7ad {{ .Profile }}{{ if .Region }}@{{ .Region }}{{ end }} ", "type": "aws" }, { "background": "#ffff66", "foreground": "#111111", "powerline_symbol": "\ue0b0", "style": "powerline", "template": " \uf0ad ", "type": "root" }, { "background": "#83769c", "foreground": "#ffffff", "properties": { "always_enabled": true }, "style": "plain", "template": "\ue0b0 \ueba2 {{ .FormattedMs }}\u2800", "type": "executiontime" }, { "background": "#00897b", "background_templates": [ "{{ if gt .Code 0 }}#e91e63{{ end }}" ], "foreground": "#ffffff", "properties": { "always_enabled": true }, "style": "diamond", "template": "\ue0b0 \ue23a ", "trailing_diamond": "\ue0b4", "type": "status" } ], "type": "prompt" }, { "segments": [ { "background": "#0077c2", "foreground": "#ffffff", "style": "plain", "template": "<#0077c2,transparent>\ue0b6 \uf489 {{ .Name }} \ue0b2", "type": "shell" }, { "background": "#1BD760", "foreground": "#111111", "invert_powerline": true, "powerline_symbol": "\ue0b2", "properties": { "paused_icon": "\uf04c ", "playing_icon": "\uf04b " }, "style": "powerline", "template": " \uf167 {{ .Icon }}{{ if ne .Status \"stopped\" }}{{ .Artist }} - {{ .Track }}{{ end }} ", "type": "ytm" }, { "background": "#f36943", "background_templates": [ "{{if eq \"Charging\" .State.String}}#40c4ff{{end}}", "{{if eq \"Discharging\" .State.String}}#ff5722{{end}}", "{{if eq \"Full\" .State.String}}#4caf50{{end}}" ], "foreground": "#ffffff", "invert_powerline": true, "powerline_symbol": "\ue0b2", "properties": { "charged_icon": "\ue22f ", "charging_icon": "\ue234 ", "discharging_icon": "\ue231 " }, "style": "powerline", "template": " {{ if not .Error }}{{ .Icon }}{{ .Percentage }}{{ end }}{{ .Error }}\uf295 ", "type": "battery" }, { "background": "#2e9599", "foreground": "#111111", "invert_powerline": true, "leading_diamond": "\ue0b2", "style": "diamond", "template": " {{ .CurrentDate | date .Format }} ", "trailing_diamond": "\ue0b4", "type": "time" } ], "type": "rprompt" } ], "console_title_template": "{{ .Shell }} in {{ .Folder }}", "final_space": true, "version": 2, "auto_upgrade": true, "disable_notice": true } ```

  The only settings I modified which are gone after closing the terminal are:

  "auto_upgrade": true,
  "disable_notice": true

What OS are you seeing the problem on?

Windows

Which shell are you using?

powershell

Log output

Version: 21.16.2

Shell: pwsh (7.4.3)

Prompt:

 Kostas    ~   0ms⠀                                                                       pwsh  02:03:56 
Segments:

ConsoleTitle(true)                         -   1 ms
Session(true)                              -   0 ms
Path(true)                                 -   1 ms
Executiontime(true)                        -   0 ms
Status(true)                               -   1 ms
Shell(true)                                -   0 ms
Time(true)                                 -   0 ms

Run duration: 25.488ms

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

Config path: C:\Users\Kostas\AppData\Local\Programs\oh-my-posh\themes\jandedobbeleer.omp.json

Logs:

[DEBUG] 02:03:56.005 shell.go:Getenv:326 → NO DATA
[TRACE] 02:03:56.006 shell.go:Getenv(TERM_PROGRAM) - 568µs
[DEBUG] 02:03:56.006 shell.go:Getenv:326 → C:\Users\Kostas\AppData\Local
[TRACE] 02:03:56.006 shell.go:Getenv(LOCALAPPDATA) - 0s
[TRACE] 02:03:56.006 shell_windows.go:CachePath() - 0s
[DEBUG] 02:03:56.006 shell.go:Getenv:326 → C:\Users\Kostas\AppData\Local\Programs\oh-my-posh\themes\jandedobbeleer.omp.json
[TRACE] 02:03:56.006 shell.go:Getenv(POSH_THEME) - 0s
[DEBUG] 02:03:56.006 shell.go:Shell:601 → no shell name provided in flags, trying to detect it
[DEBUG] 02:03:56.013 shell.go:Shell:609 → process name: pwsh.exe
[TRACE] 02:03:56.013 shell.go:Shell() - 6.542ms
[TRACE] 02:03:56.013 shell.go:resolveConfigPath() - 6.542ms
[TRACE] 02:03:56.013 shell.go:Init() - 7.6143ms
[TRACE] 02:03:56.013 shell.go:Flags() - 0s
[TRACE] 02:03:56.013 config.go:loadConfig() - 504.3µs
[TRACE] 02:03:56.013 shell.go:Flags() - 0s
[DEBUG] 02:03:56.013 shell.go:Getenv:326 → NO DATA
[TRACE] 02:03:56.013 shell.go:Getenv(OMP_CACHE_DISABLED) - 0s
[TRACE] 02:03:56.013 shell_windows.go:WindowsRegistryKeyValue(HKEY_CURRENT_USER\Software\Microsoft\Windows\DWM\ColorizationColor) - 0s
[TRACE] 02:03:56.013 shell.go:GOOS() - 0s
[TRACE] 02:03:56.013 shell.go:GOOS() - 0s
[TRACE] 02:03:56.013 shell.go:GOOS() - 0s
[TRACE] 02:03:56.013 shell.go:GOOS() - 0s
[TRACE] 02:03:56.013 shell.go:GOOS() - 0s
[TRACE] 02:03:56.013 shell.go:GOOS() - 0s
[TRACE] 02:03:56.013 shell.go:GOOS() - 0s
[TRACE] 02:03:56.013 shell.go:GOOS() - 0s
[TRACE] 02:03:56.013 shell.go:GOOS() - 0s
[TRACE] 02:03:56.013 shell.go:GOOS() - 0s
[TRACE] 02:03:56.013 shell.go:GOOS() - 0s
[TRACE] 02:03:56.013 shell.go:GOOS() - 0s
[TRACE] 02:03:56.013 shell.go:GOOS() - 0s
[TRACE] 02:03:56.013 shell.go:GOOS() - 0s
[TRACE] 02:03:56.013 shell.go:GOOS() - 0s
[TRACE] 02:03:56.013 shell.go:GOOS() - 0s
[TRACE] 02:03:56.013 shell.go:GOOS() - 0s
[TRACE] 02:03:56.013 shell.go:GOOS() - 0s
[TRACE] 02:03:56.013 shell.go:GOOS() - 0s
[DEBUG] 02:03:56.013 shell_windows.go:WindowsRegistryKeyValue:217 → ColorizationColor(DWORD): 0xC40078D4
[TRACE] 02:03:56.013 shell.go:Shell() - 0s
[DEBUG] 02:03:56.013 shell.go:Getenv:326 → 7.4.3
[TRACE] 02:03:56.013 shell.go:Getenv(POSH_SHELL_VERSION) - 0s
[DEBUG] 02:03:56.013 debug.go:PrintDebug:22 → Segment: Title
[DEBUG] 02:03:56.013 text.go:Render:72 → Rendering template: {{ .Shell }} in {{ .Folder }}
[TRACE] 02:03:56.014 shell_windows.go:Root() - 0s
[TRACE] 02:03:56.014 shell.go:Shell() - 0s
[TRACE] 02:03:56.014 shell.go:StatusCodes() - 0s
[TRACE] 02:03:56.014 shell_windows.go:IsWsl() - 0s
[DEBUG] 02:03:56.015 shell.go:TemplateCache:782 → environment: [ALLUSERSPROFILE=C:\ProgramData APPDATA=C:\Users\Kostas\AppData\Roaming chocolateyinstall=C:\Users\Kostas\AppData\Local\UniGetUI\Chocolatey CommonProgramFiles=C:\Program Files\Common Files CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files CommonProgramW6432=C:\Program Files\Common Files COMPUTERNAME=KOSTAS-PC ComSpec=C:\WINDOWS\system32\cmd.exe CONDA_PROMPT_MODIFIER=False DriverData=C:\Windows\System32\Drivers\DriverData HOMEDRIVE=C: HOMEPATH=\Users\Kostas JD2_HOME=C:\Users\Kostas\AppData\Local\JDownloader 2.0 LOCALAPPDATA=C:\Users\Kostas\AppData\Local LOGONSERVER=\\KOSTAS-PC NUMBER_OF_PROCESSORS=8 OneDrive=C:\Users\Kostas\OneDrive OS=Windows_NT Path=C:\Program Files\PowerShell\7;C:\Program Files (x86)\VMware\VMware Workstation\bin\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\Microsoft VS Code\bin;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\dotnet\;C:\Program Files\NVIDIA Corporation\NVIDIA App\NvDLISR;C:\Program Files\Meld\;C:\Program Files\Git\cmd;C:\Program Files\nodejs\;C:\Program Files\Docker\Docker\resources\bin;C:\Program Files\PowerShell\7\;C:\Program Files\GitHub CLI\;C:\Users\Kostas\AppData\Local\Programs\Python\Launcher\;C:\Users\Kostas\AppData\Local\UniGetUI\Chocolatey\bin;C:\Users\Kostas\AppData\Local\Programs\WingetUI\choco-cli\bin;C:\Users\Kostas\AppData\Local\Microsoft\WindowsApps;C:\Users\Kostas\AppData\Local\GitHubDesktop\bin;C:\Users\Kostas\.deno\bin;C:\Users\Kostas\AppData\Local\Microsoft\WindowsApps;C:\GitHub CLI\;C:\Users\Kostas\AppData\Local\Programs\oh-my-posh\bin;C:\Users\Kostas\.bun\bin;C:\Users\Kostas\AppData\Local\Microsoft\WinGet\Links;C:\Users\Kostas\AppData\Roaming\npm PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.CPL POSH_AZURE_ENABLED=False POSH_CURSOR_COLUMN=1 POSH_CURSOR_LINE=1 POSH_GIT_ENABLED=False POSH_INSTALLER=manual POSH_PID=12432 POSH_SHELL_VERSION=7.4.3 POSH_THEME=C:\Users\Kostas\AppData\Local\Programs\oh-my-posh\themes\jandedobbeleer.omp.json POSH_THEMES_PATH=C:\Users\Kostas\AppData\Local\Programs\oh-my-posh\themes POWERLINE_COMMAND=oh-my-posh POWERSHELL_DISTRIBUTION_CHANNEL=MSI:Windows 10 Pro PROCESSOR_ARCHITECTURE=AMD64 PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 158 Stepping 12, GenuineIntel PROCESSOR_LEVEL=6 PROCESSOR_REVISION=9e0c ProgramData=C:\ProgramData ProgramFiles=C:\Program Files ProgramFiles(x86)=C:\Program Files (x86) ProgramW6432=C:\Program Files PSModulePath=C:\Users\Kostas\Documents\PowerShell\Modules;C:\Program Files\PowerShell\Modules;c:\program files\powershell\7\Modules;C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules PUBLIC=C:\Users\Public SESSIONNAME=Console SystemDrive=C: SystemRoot=C:\WINDOWS TEMP=C:\Users\Kostas\AppData\Local\Temp TMP=C:\Users\Kostas\AppData\Local\Temp USERDOMAIN=KOSTAS-PC USERDOMAIN_ROAMINGPROFILE=KOSTAS-PC USERNAME=Kostas USERPROFILE=C:\Users\Kostas windir=C:\WINDOWS WSLENV=WT_SESSION:WT_PROFILE_ID: WT_PROFILE_ID={574e775e-4f2a-5b96-ac1e-a2962a402336} WT_SESSION=176803e9-96eb-4953-9381-94dd9efaf50a]
[TRACE] 02:03:56.015 shell.go:GOOS() - 0s
[DEBUG] 02:03:56.015 shell.go:Pwd:356 → C:\Users\Kostas
[TRACE] 02:03:56.015 shell.go:Pwd() - 0s
[DEBUG] 02:03:56.015 shell_windows.go:58 → C:\Users\Kostas
[TRACE] 02:03:56.015 shell_windows.go:IsWsl() - 0s
[TRACE] 02:03:56.015 shell.go:GOOS() - 0s
[TRACE] 02:03:56.015 shell.go:GOOS() - 0s
[TRACE] 02:03:56.015 shell.go:GOOS() - 0s
[TRACE] 02:03:56.015 shell.go:GOOS() - 0s
[TRACE] 02:03:56.015 shell.go:GOOS() - 0s
[TRACE] 02:03:56.015 shell.go:GOOS() - 0s
[TRACE] 02:03:56.015 shell.go:GOOS() - 0s
[TRACE] 02:03:56.015 shell.go:GOOS() - 0s
[TRACE] 02:03:56.015 shell.go:GOOS() - 0s
[DEBUG] 02:03:56.015 shell.go:User:494 → Kostas
[TRACE] 02:03:56.015 shell.go:User() - 0s
[DEBUG] 02:03:56.015 shell.go:Host:511 → Kostas-PC
[TRACE] 02:03:56.015 shell.go:Host() - 0s
[TRACE] 02:03:56.015 shell.go:GOOS() - 0s
[DEBUG] 02:03:56.015 shell.go:Getenv:326 → NO DATA
[TRACE] 02:03:56.015 shell.go:Getenv(SHLVL) - 0s
[TRACE] 02:03:56.015 shell.go:TemplateCache() - 520µs
[DEBUG] 02:03:56.015 shell.go:Getenv:326 → 1
[TRACE] 02:03:56.015 shell.go:Getenv(POSH_CURSOR_LINE) - 0s
[DEBUG] 02:03:56.015 shell.go:Getenv:326 → 1
[TRACE] 02:03:56.015 shell.go:Getenv(POSH_CURSOR_COLUMN) - 0s
[TRACE] 02:03:56.015 shell.go:Flags() - 0s
[TRACE] 02:03:56.015 shell.go:Flags() - 0s
[TRACE] 02:03:56.015 shell.go:Shell() - 0s
[TRACE] 02:03:56.015 shell.go:Shell() - 0s
[TRACE] 02:03:56.015 shell.go:Flags() - 0s
[TRACE] 02:03:56.015 shell.go:Flags() - 0s
[TRACE] 02:03:56.015 shell.go:Pwd() - 0s
[TRACE] 02:03:56.015 shell.go:Pwd() - 0s
[DEBUG] 02:03:56.015 shell_windows.go:58 → C:\Users\Kostas
[TRACE] 02:03:56.015 shell.go:Flags() - 0s
[TRACE] 02:03:56.015 shell.go:GOOS() - 0s
[DEBUG] 02:03:56.015 segment.go:SetEnabled:560 → Segment: Path
[DEBUG] 02:03:56.015 properties.go:GetBool:22 → display_cygpath: false
[DEBUG] 02:03:56.015 properties.go:GetString:28 → {{ .Code }}
[TRACE] 02:03:56.015 shell.go:Pwd() - 0s
[TRACE] 02:03:56.015 shell.go:GOOS() - 0s
[TRACE] 02:03:56.015 shell.go:PathSeparator() - 0s
[TRACE] 02:03:56.015 shell.go:Pwd() - 0s
[DEBUG] 02:03:56.015 shell_windows.go:58 → C:\Users\Kostas
[TRACE] 02:03:56.015 shell.go:GOOS() - 0s
[TRACE] 02:03:56.015 shell.go:Flags() - 0s
[DEBUG] 02:03:56.015 segment.go:SetEnabled:560 → Segment: Status
[TRACE] 02:03:56.015 shell.go:StatusCodes() - 0s
[DEBUG] 02:03:56.015 text.go:Render:72 → Rendering template: {{ .Code }}
[DEBUG] 02:03:56.015 properties.go:GetBool:22 → mapped_locations_enabled: true
[DEBUG] 02:03:56.016 properties.go:GetString:28 → 
[DEBUG] 02:03:56.015 shell_windows.go:58 → C:\Users\Kostas
[TRACE] 02:03:56.016 shell.go:GOOS() - 0s
[DEBUG] 02:03:56.016 segment.go:SetEnabled:560 → Segment: Session
[TRACE] 02:03:56.016 shell.go:Flags() - 0s
[TRACE] 02:03:56.016 shell.go:Pwd() - 0s
[DEBUG] 02:03:56.016 shell_windows.go:58 → C:\Users\Kostas
[TRACE] 02:03:56.016 shell.go:GOOS() - 0s
[DEBUG] 02:03:56.016 segment.go:SetEnabled:560 → Segment: Git
[TRACE] 02:03:56.016 shell.go:Flags() - 0s
[TRACE] 02:03:56.016 shell.go:GOOS() - 0s
[DEBUG] 02:03:56.016 shell.go:Getenv:326 → C:\Users\Kostas\AppData\Local
[TRACE] 02:03:56.016 shell.go:Getenv(LOCALAPPDATA) - 0s
[TRACE] 02:03:56.016 shell.go:Pwd() - 0s
[DEBUG] 02:03:56.016 shell_windows.go:58 → C:\Users\Kostas
[TRACE] 02:03:56.016 shell.go:GOOS() - 0s
[DEBUG] 02:03:56.016 segment.go:SetEnabled:560 → Segment: Ruby
[DEBUG] 02:03:56.016 properties.go:GetStringArray:52 → extensions: [*.rb Rakefile Gemfile]
[DEBUG] 02:03:56.016 properties.go:GetStringArray:52 → folders: []
[DEBUG] 02:03:56.016 properties.go:GetBool:22 → home_enabled: false
[TRACE] 02:03:56.016 shell.go:Pwd() - 0s
[DEBUG] 02:03:56.016 shell_windows.go:58 → C:\Users\Kostas
[TRACE] 02:03:56.016 shell.go:Flags() - 0s
[TRACE] 02:03:56.016 shell.go:Pwd() - 0s
[DEBUG] 02:03:56.016 shell_windows.go:58 → C:\Users\Kostas
[TRACE] 02:03:56.016 shell.go:GOOS() - 0s
[DEBUG] 02:03:56.016 segment.go:SetEnabled:560 → Segment: Azfunc
[DEBUG] 02:03:56.016 properties.go:GetStringArray:52 → extensions: [host.json local.settings.json function.json]
[DEBUG] 02:03:56.016 properties.go:GetStringArray:52 → folders: []
[DEBUG] 02:03:56.016 properties.go:GetBool:22 → home_enabled: false
[TRACE] 02:03:56.016 shell.go:Pwd() - 0s
[DEBUG] 02:03:56.016 shell_windows.go:58 → C:\Users\Kostas
[TRACE] 02:03:56.016 shell.go:Flags() - 0s
[TRACE] 02:03:56.016 shell.go:Pwd() - 0s
[DEBUG] 02:03:56.016 shell_windows.go:58 → C:\Users\Kostas
[TRACE] 02:03:56.016 shell.go:GOOS() - 0s
[DEBUG] 02:03:56.016 shell.go:Getenv:326 → NO DATA
[DEBUG] 02:03:56.016 segment.go:SetEnabled:560 → Segment: Aws
[TRACE] 02:03:56.016 shell.go:Getenv(SSH_CONNECTION) - 0s
[TRACE] 02:03:56.016 shell.go:Flags() - 0s
[DEBUG] 02:03:56.016 shell.go:Getenv:326 → NO DATA
[DEBUG] 02:03:56.016 properties.go:GetBool:22 → display_default: false
[TRACE] 02:03:56.016 shell.go:Getenv(SSH_CLIENT) - 0s
[DEBUG] 02:03:56.016 shell.go:Getenv:326 → NO DATA
[TRACE] 02:03:56.016 shell.go:Getenv(AWS_VAULT) - 0s
[TRACE] 02:03:56.016 shell.go:TemplateCache() - 0s
[DEBUG] 02:03:56.016 shell.go:Getenv:326 → NO DATA
[TRACE] 02:03:56.016 shell.go:Getenv(AWS_DEFAULT_PROFILE) - 0s
[DEBUG] 02:03:56.016 properties.go:GetString:28 → 
[DEBUG] 02:03:56.016 properties.go:GetString:28 → files
[DEBUG] 02:03:56.016 shell.go:Getenv:326 → NO DATA
[TRACE] 02:03:56.016 shell.go:Getenv(AWS_PROFILE) - 0s
[DEBUG] 02:03:56.016 shell_windows.go:58 → C:\Users\Kostas
[DEBUG] 02:03:56.016 shell.go:Getenv:326 → NO DATA
[TRACE] 02:03:56.016 shell.go:Getenv(AWS_REGION) - 0s
[TRACE] 02:03:56.016 shell.go:Pwd() - 0s
[TRACE] 02:03:56.016 shell.go:GOOS() - 0s
[TRACE] 02:03:56.016 shell.go:GOOS() - 0s
[DEBUG] 02:03:56.016 shell_windows.go:58 → C:\Users\Kostas
[DEBUG] 02:03:56.016 shell.go:Getenv:326 → NO DATA
[DEBUG] 02:03:56.016 properties.go:GetString:28 → ~
[TRACE] 02:03:56.016 shell.go:Getenv(AWS_DEFAULT_REGION) - 0s
[TRACE] 02:03:56.016 shell.go:GOOS() - 0s
[DEBUG] 02:03:56.016 shell.go:Getenv:326 → NO DATA
[DEBUG] 02:03:56.016 segment.go:SetEnabled:560 → Segment: Python
[TRACE] 02:03:56.016 shell.go:Getenv(AWS_CONFIG_FILE) - 520.5µs
[DEBUG] 02:03:56.016 properties.go:GetKeyValueMap:46 → mapped_locations: map[]
[TRACE] 02:03:56.016 shell.go:Pwd() - 0s
[DEBUG] 02:03:56.016 shell_windows.go:58 → C:\Users\Kostas
[TRACE] 02:03:56.016 shell.go:GOOS() - 0s
[TRACE] 02:03:56.016 shell.go:Pwd() - 0s
[DEBUG] 02:03:56.016 shell_windows.go:58 → C:\Users\Kostas
[TRACE] 02:03:56.016 shell.go:GOOS() - 0s
[DEBUG] 02:03:56.016 segment.go:SetEnabled:560 → Segment: Go
[DEBUG] 02:03:56.016 properties.go:GetStringArray:52 → extensions: [*.go go.mod]
[DEBUG] 02:03:56.016 properties.go:GetStringArray:52 → folders: []
[DEBUG] 02:03:56.016 properties.go:GetBool:22 → home_enabled: false
[TRACE] 02:03:56.016 shell.go:Pwd() - 0s
[TRACE] 02:03:56.016 shell.go:Flags() - 0s
[DEBUG] 02:03:56.016 shell_windows.go:58 → C:\Users\Kostas
[TRACE] 02:03:56.016 shell.go:Flags() - 0s
[TRACE] 02:03:56.016 shell.go:GOOS() - 0s
[TRACE] 02:03:56.016 shell.go:GOOS() - 0s
[TRACE] 02:03:56.016 shell.go:Pwd() - 0s
[TRACE] 02:03:56.016 shell.go:Pwd() - 0s
[TRACE] 02:03:56.016 shell.go:GOOS() - 0s
[TRACE] 02:03:56.016 shell.go:GOOS() - 0s
[DEBUG] 02:03:56.016 shell_windows.go:58 → C:\Users\Kostas
[TRACE] 02:03:56.016 shell.go:GOOS() - 0s
[TRACE] 02:03:56.016 shell.go:GOOS() - 0s
[TRACE] 02:03:56.016 shell.go:GOOS() - 0s
[DEBUG] 02:03:56.016 segment.go:SetEnabled:560 → Segment: Node
[TRACE] 02:03:56.016 shell.go:GOOS() - 0s
[DEBUG] 02:03:56.016 segment.go:SetEnabled:560 → Segment: Root
[DEBUG] 02:03:56.016 properties.go:GetStringArray:52 → extensions: [*.js *.ts package.json .nvmrc pnpm-workspace.yaml .pnpmfile.cjs .vue]
[TRACE] 02:03:56.016 shell.go:GOOS() - 0s
[DEBUG] 02:03:56.016 properties.go:GetStringArray:52 → folders: []
[DEBUG] 02:03:56.016 properties.go:GetBool:22 → home_enabled: false
[TRACE] 02:03:56.016 shell.go:Pwd() - 0s
[DEBUG] 02:03:56.016 properties.go:GetString:28 → NO DATA
[DEBUG] 02:03:56.016 shell_windows.go:58 → C:\Users\Kostas
[TRACE] 02:03:56.016 shell.go:Flags() - 0s
[DEBUG] 02:03:56.016 shell_windows.go:58 → C:\Users\Kostas
[TRACE] 02:03:56.016 shell.go:Pwd() - 0s
[TRACE] 02:03:56.016 shell.go:TemplateCache() - 0s
[TRACE] 02:03:56.016 shell.go:Pwd() - 0s
[TRACE] 02:03:56.016 shell.go:StackCount() - 0s
[DEBUG] 02:03:56.016 shell_windows.go:58 → C:\Users\Kostas
[TRACE] 02:03:56.016 shell_windows.go:Root() - 79µs
[TRACE] 02:03:56.016 shell.go:GOOS() - 0s
[TRACE] 02:03:56.016 shell.go:Flags() - 0s
[DEBUG] 02:03:56.016 segment.go:SetEnabled:560 → Segment: Julia
[DEBUG] 02:03:56.016 properties.go:GetStringArray:52 → extensions: [*.jl]
[DEBUG] 02:03:56.016 properties.go:GetStringArray:52 → folders: []
[DEBUG] 02:03:56.016 properties.go:GetBool:22 → home_enabled: false
[TRACE] 02:03:56.016 shell.go:Pwd() - 0s
[TRACE] 02:03:56.016 shell.go:Pwd() - 0s
[DEBUG] 02:03:56.016 shell_windows.go:58 → C:\Users\Kostas
[DEBUG] 02:03:56.016 shell_windows.go:58 → C:\Users\Kostas
[TRACE] 02:03:56.016 shell.go:GOOS() - 0s
[DEBUG] 02:03:56.016 segment.go:SetEnabled:560 → Segment: Executiontime
[DEBUG] 02:03:56.016 properties.go:GetBool:22 → always_enabled: true
[TRACE] 02:03:56.016 shell.go:ExecutionTime() - 0s
[DEBUG] 02:03:56.016 properties.go:GetFloat64:34 → threshold: 500.000000
[DEBUG] 02:03:56.016 properties.go:GetString:28 → austin
[TRACE] 02:03:56.016 shell.go:TemplateCache() - 0s
[TRACE] 02:03:56.016 shell.go:TemplateCache() - 0s
[DEBUG] 02:03:56.016 properties.go:GetBool:22 → always_enabled: true
[TRACE] 02:03:56.016 shell.go:TemplateCache() - 0s
[ERROR] 02:03:56.016 shell.go:FileContent:464 → open C:\Users\Kostas/.aws/config: The system cannot find the file specified.
[TRACE] 02:03:56.016 shell.go:FileContent(C:\Users\Kostas/.aws/config) - 79µs
[DEBUG] 02:03:56.016 win32_windows.go:isWriteable:299 → not current user or in group
[DEBUG] 02:03:56.016 win32_windows.go:isWriteable:303 → current user is member of S-1-5-32-544
[DEBUG] 02:03:56.016 win32_windows.go:isWriteable:311 ↓
    WRITE_DAC
    WRITE_OWNER
    SYNCHRONIZE
    DELETE
    READ_CONTROL
[DEBUG] 02:03:56.016 win32_windows.go:isWriteable:313 → user has write access
[TRACE] 02:03:56.016 shell_windows.go:DirIsWritable() - 0s
[TRACE] 02:03:56.017 shell.go:TemplateCache() - 0s
[DEBUG] 02:03:56.026 shell.go:CommandPath:553 → C:\Program Files\Git\cmd\git.exe
[TRACE] 02:03:56.026 shell.go:CommandPath(git.exe) - 10.0038ms
[TRACE] 02:03:56.026 shell.go:HasCommand(git.exe) - 10.0038ms
[TRACE] 02:03:56.026 shell.go:Pwd() - 0s
[ERROR] 02:03:56.026 shell.go:HasParentFilePath:697 → CreateFile .git: The system cannot find the file specified.
[TRACE] 02:03:56.026 shell.go:HasParentFilePath(.git) - 0s
[DEBUG] 02:03:56.026 properties.go:GetBool:22 → fetch_bare_info: false
[DEBUG] 02:03:56.026 text.go:Render:72 → Rendering template:  {{ .UserName }}
[DEBUG] 02:03:56.026 text.go:Render:72 → Rendering template: <parentBackground></> 
[DEBUG] 02:03:56.026 text.go:Render:72 → Rendering template: <transparent></>  {{ .FormattedMs }}⠀
[DEBUG] 02:03:56.026 text.go:Render:72 → Rendering template:    {{ .Path }}
[TRACE] 02:03:56.026 shell.go:TemplateCache() - 0s
[TRACE] 02:03:56.026 shell.go:TemplateCache() - 0s
[TRACE] 02:03:56.027 shell.go:TemplateCache() - 0s
[DEBUG] 02:03:56.027 text.go:Render:72 → Rendering template: powerline
[DEBUG] 02:03:56.027 text.go:Render:72 → Rendering template: powerline
[DEBUG] 02:03:56.027 text.go:Render:72 → Rendering template: powerline
[DEBUG] 02:03:56.027 text.go:Render:72 → Rendering template: powerline
[DEBUG] 02:03:56.027 text.go:Render:72 → Rendering template: powerline
[DEBUG] 02:03:56.027 text.go:Render:72 → Rendering template: powerline
[DEBUG] 02:03:56.027 text.go:Render:72 → Rendering template: powerline
[DEBUG] 02:03:56.027 text.go:Render:72 → Rendering template: powerline
[DEBUG] 02:03:56.027 text.go:Render:72 → Rendering template: powerline
[DEBUG] 02:03:56.027 text.go:Render:72 → Rendering template: diamond
[DEBUG] 02:03:56.027 text.go:Render:72 → Rendering template: powerline
[DEBUG] 02:03:56.027 text.go:Render:72 → Rendering template: plain
[DEBUG] 02:03:56.027 text.go:Render:72 → Rendering template: {{ if gt .Code 0 }}#e91e63{{ end }}
[TRACE] 02:03:56.027 shell.go:TemplateCache() - 0s
[DEBUG] 02:03:56.027 text.go:Render:72 → Rendering template: diamond
[TRACE] 02:03:56.027 shell.go:Shell() - 0s
[TRACE] 02:03:56.027 shell.go:Shell() - 0s
[TRACE] 02:03:56.027 shell.go:Shell() - 0s
[TRACE] 02:03:56.027 shell.go:Flags() - 0s
[TRACE] 02:03:56.027 shell.go:Pwd() - 0s
[DEBUG] 02:03:56.027 shell_windows.go:58 → C:\Users\Kostas
[TRACE] 02:03:56.027 shell.go:GOOS() - 0s
[DEBUG] 02:03:56.027 segment.go:SetEnabled:560 → Segment: Time
[DEBUG] 02:03:56.027 properties.go:GetString:28 → 15:04:05
[TRACE] 02:03:56.027 shell.go:TemplateCache() - 0s
[TRACE] 02:03:56.027 shell.go:Flags() - 0s
[TRACE] 02:03:56.027 shell.go:Pwd() - 0s
[DEBUG] 02:03:56.027 shell_windows.go:58 → C:\Users\Kostas
[TRACE] 02:03:56.027 shell.go:GOOS() - 0s
[DEBUG] 02:03:56.027 segment.go:SetEnabled:560 → Segment: Shell
[DEBUG] 02:03:56.027 properties.go:GetKeyValueMap:46 → mapped_shell_names: map[]
[TRACE] 02:03:56.027 shell.go:Flags() - 0s
[TRACE] 02:03:56.027 shell.go:Shell() - 0s
[TRACE] 02:03:56.027 shell.go:Flags() - 0s
[TRACE] 02:03:56.027 shell.go:TemplateCache() - 0s
[TRACE] 02:03:56.027 shell.go:Flags() - 0s
[TRACE] 02:03:56.027 shell.go:Pwd() - 0s
[TRACE] 02:03:56.027 shell.go:Pwd() - 0s
[DEBUG] 02:03:56.027 shell_windows.go:58 → C:\Users\Kostas
[DEBUG] 02:03:56.027 shell_windows.go:58 → C:\Users\Kostas
[TRACE] 02:03:56.027 shell.go:GOOS() - 0s
[TRACE] 02:03:56.027 shell.go:GOOS() - 0s
[DEBUG] 02:03:56.027 segment.go:SetEnabled:560 → Segment: Battery
[DEBUG] 02:03:56.027 segment.go:SetEnabled:560 → Segment: Ytm
[TRACE] 02:03:56.027 shell_windows.go:IsWsl() - 0s
[DEBUG] 02:03:56.027 properties.go:GetString:28 → http://127.0.0.1:9863
[DEBUG] 02:03:56.027 properties.go:GetInt:40 → api_url: 20
[DEBUG] 02:03:56.027 shell.go:HTTPRequest:653 ↓
    GET /query HTTP/1.1
    Host: 127.0.0.1:9863
    User-Agent: Go-http-client/1.1
    Accept-Encoding: gzip

[ERROR] 02:03:56.028 shell.go:HTTPRequest:657 → 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] 02:03:56.028 shell.go:HTTPRequest(http://127.0.0.1:9863/query) - 1.0638ms
[ERROR] 02:03:56.030 shell_windows_nix.go:BatteryState:15 → no battery
[TRACE] 02:03:56.030 shell_windows_nix.go:BatteryState() - 2.6564ms
[DEBUG] 02:03:56.030 text.go:Render:72 → Rendering template:  {{ .CurrentDate | date .Format }}
[DEBUG] 02:03:56.030 text.go:Render:72 → Rendering template: <#0077c2,transparent></>  {{ .Name }} <transparent,#0077c2></>
[TRACE] 02:03:56.031 shell.go:TemplateCache() - 0s
[TRACE] 02:03:56.031 shell.go:TemplateCache() - 0s
[DEBUG] 02:03:56.031 text.go:Render:72 → Rendering template: powerline
[DEBUG] 02:03:56.031 text.go:Render:72 → Rendering template: powerline
[DEBUG] 02:03:56.031 text.go:Render:72 → Rendering template: plain
[DEBUG] 02:03:56.031 text.go:Render:72 → Rendering template: diamond
[TRACE] 02:03:56.031 shell.go:Shell() - 0s
[TRACE] 02:03:56.031 shell.go:Flags() - 0s
[TRACE] 02:03:56.031 shell.go:Shell() - 0s
[TRACE] 02:03:56.031 shell.go:Shell() - 0s
[DEBUG] 02:03:56.031 shell_windows.go:TerminalWidth:111 → terminal width: 120
[TRACE] 02:03:56.031 shell_windows.go:TerminalWidth() - 0s
[DEBUG] 02:03:56.031 shell.go:Getenv:326 → C:\Users\Kostas\AppData\Local
[TRACE] 02:03:56.031 shell.go:Getenv(LOCALAPPDATA) - 0s
[TRACE] 02:03:56.031 shell_windows.go:CachePath() - 0s
[TRACE] 02:03:56.031 shell.go:Flags() - 0s

PS. Rather unrelated issue of 3 years ago: #680.

JanDeDobbeleer commented 2 months ago

@darkred This isn't a bug. When you edit the themes that ship with oh-my-posh, they get overridden with their latest versions on upgrade. You need to copy the theme you want elsewhere and edit that.

darkred commented 2 months ago

Thanks for the clarification. By the way, I'd like to make a suggestion: For use cases like mine where I use a theme that ships with oh-my-posh intact (without any changes), it might be more convenient to have an extra settings_general.json file pointing to that theme file, containing only general settings like auto_upgrade and disable_notice (ref). Also, this way the used theme file would be updated on every oh-my-posh upgrade (currently, because it's copied+renamed, it's only updated manually by the user).

JanDeDobbeleer commented 2 months ago

@darkred themes are pretty stable and there's also a migration functionality for huge changes. This'll be fine.