Skip to content

The 1_shell theme encounters an error when used in xonsh. #6282

Closed
@lunrenyi

Description

@lunrenyi

Code of Conduct

  • I agree to follow this project's Code of Conduct

What happened?

A bug happened!

  • I installed xonsh and oh-my-posh using brew. After configuring the 1_shell theme with ohmyposh in xonsh, the following error occurs::
ERROR:root:expected '}' before end of string
Traceback (most recent call last):
  File "/opt/homebrew/Cellar/xonsh/0.19.2/libexec/lib/python3.13/site-packages/xonsh/prompt/base.py", line 93, in __call__
    toks = self._format_prompt(template=template, **kwargs)
  File "/opt/homebrew/Cellar/xonsh/0.19.2/libexec/lib/python3.13/site-packages/xonsh/shells/ptk_shell/formatter.py", line 46, in _format_prompt
    toks = super()._format_prompt(
        template=template, async_prompt=async_prompt, **kwargs
    )
  File "/opt/homebrew/Cellar/xonsh/0.19.2/libexec/lib/python3.13/site-packages/xonsh/prompt/base.py", line 109, in _format_prompt
    for literal, field, spec, conv in xt.FORMATTER.parse(tmpl):
                                      ~~~~~~~~~~~~~~~~~~^^^^^^
ValueError: expected '}' before end of string
xonsh: For full traceback set: $XONSH_SHOW_TRACEBACK = True
ValueError: expected '}' before end of string
Failed to format prompt `<function _omp_get_primary at 0x108383ec0>`-> <class 'ValueError'>:expected '}' before end of string
  • I have identified that the issue is caused by the following configuration.
"leading_diamond": "<#00c7fc> \ue285 </><#ffafd2>{</>"
"trailing_diamond": "<#ffafd2>}</>"

Theme

1_shell: curl -o ~/.poshthemes/1_shell.omp.json https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/1_shell.omp.json

{
  "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
  "blocks": [
    {
      "alignment": "left",
      "newline": true,
      "segments": [
        {
          "foreground": "#ffbebc",
          "leading_diamond": "<#ff70a6> \ue200 </>",
          "properties": {
            "display_host": true
          },
          "style": "diamond",
          "template": "{{ .UserName }} <#ffffff>on</>",
          "type": "session"
        },
        {
          "foreground": "#bc93ff",
          "properties": {
            "time_format": "Monday <#ffffff>at</> 3:04 PM"
          },
          "style": "diamond",
          "template": " {{ .CurrentDate | date .Format }} ",
          "type": "time"
        },
        {
          "foreground": "#ee79d1",
          "properties": {
            "branch_icon": "\ue725 ",
            "fetch_stash_count": true,
            "fetch_status": true,
            "fetch_upstream_icon": true,
            "fetch_worktree_count": true
          },
          "style": "diamond",
          "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 }} ",
          "type": "git"
        }
      ],
      "type": "prompt"
    },
    {
      "alignment": "right",
      "segments": [
        {
          "foreground": "#a9ffb4",
          "style": "plain",
          "type": "text"
        },
        {
          "foreground": "#a9ffb4",
          "properties": {
            "style": "dallas",
            "threshold": 0
          },
          "style": "diamond",
          "template": " {{ .FormattedMs }}s <#ffffff>\ue601</>",
          "type": "executiontime"
        },
        {
          "properties": {
            "root_icon": "\uf292 "
          },
          "style": "diamond",
          "template": " \uf0e7 ",
          "type": "root"
        },
        {
          "foreground": "#94ffa2",
          "style": "diamond",
          "template": " <#ffffff>MEM:</> {{ round .PhysicalPercentUsed .Precision }}% ({{ (div ((sub .PhysicalTotalMemory .PhysicalAvailableMemory)|float64) 1073741824.0) }}/{{ (div .PhysicalTotalMemory 1073741824.0) }}GB)",
          "type": "sysinfo"
        }
      ],
      "type": "prompt"
    },
    {
      "alignment": "left",
      "newline": true,
      "segments": [
        {
          "foreground": "#ffafd2",
          "leading_diamond": "<#00c7fc> \ue285 </><#ffafd2>{</>",
          "properties": {
            "folder_icon": "\uf07b",
            "folder_separator_icon": " \uebcb ",
            "home_icon": "home",
            "style": "agnoster_full"
          },
          "style": "diamond",
          "template": " \ue5ff {{ .Path }} ",
          "trailing_diamond": "<#ffafd2>}</>",
          "type": "path"
        },
        {
          "foreground": "#A9FFB4",
          "foreground_templates": ["{{ if gt .Code 0 }}#ef5350{{ end }}"],
          "properties": {
            "always_enabled": true
          },
          "style": "plain",
          "template": " \ue286 ",
          "type": "status"
        }
      ],
      "type": "prompt"
    }
  ],
  "console_title_template": "{{ .Folder }}",
  "transient_prompt": {
    "background": "transparent",
    "foreground": "#FEF5ED",
    "template": "\ue285 "
  },
  "version": 3
}

What OS are you seeing the problem on?

macOS

Which shell are you using?

xonsh

Log output

Version: 25.4.3

Shell: xonsh (0.19.2)

Prompt:


  liaoxuanbin on Monday at 4:50 PM   main ≡                                                0s  MEM: 66.82% (15/16GB)
  {  home  xbash  ohmyposh }  

Segments:

ConsoleTitle(true)                         -   0 ms
Session(true)                              -   3 ms
Time(true)                                 -   0 ms
Git(true)                                  -  12 ms
Text(false)                                -   0 ms
Executiontime(true)                        -   0 ms
Root(false)                                -   0 ms
Sysinfo(true)                              -   0 ms
Path(true)                                 -   0 ms
Status(true)                               -   0 ms

Run duration: 23.714875ms

Cache path: /Users/liaoxuanbin/.cache/oh-my-posh

Config path: /Users/liaoxuanbin/.x-cmd.root/local/data/ohmyposh/config/1_shell.omp.json

Logs:

[DEBUG] 16:50:13.529 debug.go:36 → debug mode enabled
[DEBUG] 16:50:13.529 load.go:Path:79 → config set using POSH_THEME: /Users/liaoxuanbin/.x-cmd.root/local/data/ohmyposh/config/1_shell.omp.json
[TRACE] 16:50:13.529 load.go:Path() - 23.125µs
[TRACE] 16:50:13.530 load.go:loadConfig() - 805.583µs
[TRACE] 16:50:13.530 load.go:Load() - 813.834µs
[DEBUG] 16:50:13.530 terminal.go:Init:54 → plain mode enabled
[DEBUG] 16:50:13.530 home.go:12 → /Users/liaoxuanbin
[TRACE] 16:50:13.530 path.go:Path() - 64.833µs
[DEBUG] 16:50:13.530 file.go:Init:26 → loading cache file: /Users/liaoxuanbin/.cache/oh-my-posh/omp.cache
[DEBUG] 16:50:13.530 file.go:Init:47 → loading cache key: environment_platform
[DEBUG] 16:50:13.530 file.go:Init:47 → loading cache key: is_wsl
[DEBUG] 16:50:13.530 file.go:Init:47 → loading cache key: upgrade_check
[TRACE] 16:50:13.530 file.go:Init(/Users/liaoxuanbin/.cache/oh-my-posh/omp.cache) - 96.042µs
[DEBUG] 16:50:13.530 home.go:12 → /Users/liaoxuanbin
[TRACE] 16:50:13.530 path.go:Path() - 10.625µs
[DEBUG] 16:50:13.530 file.go:Init:26 → loading cache file: /Users/liaoxuanbin/.cache/oh-my-posh/omp.cache.7e71080d-4ab2-4a27-b59b-328a056c4a7e
[DEBUG] 16:50:13.530 file.go:Init:47 → loading cache key: prompt_count_cache
[DEBUG] 16:50:13.530 file.go:Init:47 → loading cache key: template_cache
[TRACE] 16:50:13.530 file.go:Init(/Users/liaoxuanbin/.cache/oh-my-posh/omp.cache.7e71080d-4ab2-4a27-b59b-328a056c4a7e) - 73.333µs
[TRACE] 16:50:13.530 terminal.go:setPromptCount() - 459ns
[TRACE] 16:50:13.530 terminal.go:GOOS() - 42ns
[DEBUG] 16:50:13.530 terminal.go:setPwd:115 → /Users/liaoxuanbin/xbash/ohmyposh
[TRACE] 16:50:13.530 terminal.go:setPwd() - 29.792µs
[TRACE] 16:50:13.530 terminal.go:Init() - 345µs
[TRACE] 16:50:13.530 terminal.go:Shell() - 41ns
[TRACE] 16:50:13.530 terminal.go:Flags() - 42ns
[TRACE] 16:50:13.530 cache.go:restoreCache() - 99.375µs
[DEBUG] 16:50:13.530 writer.go:Init:105 → terminal program: vscode
[DEBUG] 16:50:13.530 writer.go:Init:106 → terminal shell: shell
[DEBUG] 16:50:13.530 terminal.go:Getenv:77 → NO DATA
[TRACE] 16:50:13.530 terminal.go:Getenv(OMP_CACHE_DISABLED) - 2.916µs
[ERROR] 16:50:13.537 terminal.go:RunCommand:290 → exit status 1
[DEBUG] 16:50:13.537 terminal.go:RunCommand:293 ↓
    2025-03-17 16:50:13.537 defaults[30486:276040] 
    The domain/default pair of (kCFPreferencesAnyApplication, AppleAccentColor) does not exist
    
[TRACE] 16:50:13.537 terminal.go:RunCommand(defaults read -g AppleAccentColor) - 7.092875ms
[ERROR] 16:50:13.537 colors_darwin.go:GetAccentColor:14 → exit status 1
[TRACE] 16:50:13.537 colors.go:SetAccentColor() - 7.118792ms
[TRACE] 16:50:13.537 terminal.go:Shell() - 250ns
[DEBUG] 16:50:13.537 terminal.go:Getenv:77 → 0.19.2
[TRACE] 16:50:13.537 terminal.go:Getenv(POSH_SHELL_VERSION) - 7µs
[DEBUG] 16:50:13.537 debug.go:PrintDebug:24 → segment: Title
[DEBUG] 16:50:13.537 text.go:patchTemplate:125 → {{ .Folder }}
[TRACE] 16:50:13.538 text.go:Render({{ .Folder }}) - 175.209µs
[TRACE] 16:50:13.538 terminal.go:Flags() - 0s
[DEBUG] 16:50:13.538 terminal.go:Getenv:77 → NO DATA
[TRACE] 16:50:13.538 terminal.go:Getenv(POSH_CURSOR_LINE) - 2.458µs
[DEBUG] 16:50:13.538 terminal.go:Getenv:77 → NO DATA
[TRACE] 16:50:13.538 terminal.go:Getenv(POSH_CURSOR_COLUMN) - 1.583µs
[TRACE] 16:50:13.538 terminal.go:Flags() - 0s
[TRACE] 16:50:13.538 terminal.go:Flags() - 0s
[TRACE] 16:50:13.538 terminal.go:Flags() - 0s
[DEBUG] 16:50:13.538 home.go:12 → /Users/liaoxuanbin
[TRACE] 16:50:13.538 terminal.go:GOOS() - 42ns
[DEBUG] 16:50:13.538 segment.go:Execute:111 → segment: Git
[TRACE] 16:50:13.538 terminal.go:Flags() - 83ns
[DEBUG] 16:50:13.538 segment.go:isToggled:228 → no toggles found
[DEBUG] 16:50:13.538 home.go:12 → /Users/liaoxuanbin
[TRACE] 16:50:13.538 terminal_unix.go:IsWsl2() - 14.833µs
[TRACE] 16:50:13.538 terminal.go:GOOS() - 42ns
[DEBUG] 16:50:13.538 segment.go:Execute:111 → segment: Session
[DEBUG] 16:50:13.538 segment.go:isToggled:228 → no toggles found
[TRACE] 16:50:13.538 terminal.go:Flags() - 125ns
[TRACE] 16:50:13.538 terminal.go:GOOS() - 41ns
[DEBUG] 16:50:13.538 terminal.go:Getenv:77 → NO DATA
[TRACE] 16:50:13.538 terminal.go:Getenv(SSH_CONNECTION) - 4.292µs
[DEBUG] 16:50:13.538 terminal.go:Getenv:77 → NO DATA
[TRACE] 16:50:13.538 terminal.go:Getenv(SSH_CLIENT) - 1.791µs
[DEBUG] 16:50:13.538 terminal_unix.go:Platform:92 → darwin
[DEBUG] 16:50:13.538 home.go:12 → /Users/liaoxuanbin
[TRACE] 16:50:13.538 terminal.go:GOOS() - 42ns
[DEBUG] 16:50:13.538 segment.go:Execute:111 → segment: Time
[DEBUG] 16:50:13.538 segment.go:isToggled:228 → no toggles found
[DEBUG] 16:50:13.538 properties.go:GetString:28 → time_format: Monday <#ffffff>at</> 3:04 PM
[DEBUG] 16:50:13.538 terminal.go:CommandPath:317 → /usr/bin/git
[TRACE] 16:50:13.538 terminal.go:CommandPath(git) - 63.958µs
[TRACE] 16:50:13.538 terminal.go:HasCommand(git) - 65.875µs
[DEBUG] 16:50:13.538 properties.go:GetBool:22 → fetch_bare_info: false
[DEBUG] 16:50:13.538 terminal.go:ResolveSymlink:208 → /Users/liaoxuanbin/xbash/ohmyposh
[TRACE] 16:50:13.538 terminal.go:ResolveSymlink(/Users/liaoxuanbin/xbash/ohmyposh) - 17.375µs
[TRACE] 16:50:13.538 terminal.go:HasParentFilePath(.git) - 25.084µs
[DEBUG] 16:50:13.538 home.go:12 → /Users/liaoxuanbin
[TRACE] 16:50:13.538 terminal.go:GOOS() - 42ns
[TRACE] 16:50:13.538 terminal.go:GOOS() - 41ns
[DEBUG] 16:50:13.538 properties.go:GetBool:22 → fetch_user: false
[DEBUG] 16:50:13.538 properties.go:GetString:28 → source: cli
[DEBUG] 16:50:13.538 properties.go:GetBool:22 → fetch_status: true
[DEBUG] 16:50:13.538 properties.go:GetStringArray:52 → ignore_status: []
[DEBUG] 16:50:13.538 home.go:12 → /Users/liaoxuanbin
[TRACE] 16:50:13.538 terminal.go:GOOS() - 42ns
[DEBUG] 16:50:13.538 properties.go:GetKeyValueMap:46 → status_formats: map[]
[DEBUG] 16:50:13.538 properties.go:GetKeyValueMap:46 → untracked_modes: map[]
[DEBUG] 16:50:13.538 properties.go:GetKeyValueMap:46 → ignore_submodules: map[]
[DEBUG] 16:50:13.541 terminal.go:RunCommand:293 → liaoxuanbin                    3 17 16:50
[TRACE] 16:50:13.541 terminal.go:RunCommand(who am i) - 3.221958ms
[DEBUG] 16:50:13.541 text.go:patchTemplate:125 → {{ .UserName }} <#ffffff>on</>
[TRACE] 16:50:13.541 text.go:Render({{ .UserName }} <#ffffff>on</>) - 249µs
[TRACE] 16:50:13.541 text.go:Render(diamond) - 83ns
[DEBUG] 16:50:13.541 text.go:patchTemplate:125 →  {{ .Data.CurrentDate | date .Data.Format }} 
[TRACE] 16:50:13.541 text.go:Render( {{ .CurrentDate | date .Format }} ) - 39.542µs
[TRACE] 16:50:13.541 text.go:Render(diamond) - 42ns
[DEBUG] 16:50:13.549 terminal.go:RunCommand:293 ↓
    # branch.oid 9392d6261428cb986fbaf1e6a26a15335da72c5f
    # branch.head main
    # branch.upstream origin/main
    # branch.ab +0 -0
[TRACE] 16:50:13.549 terminal.go:RunCommand(git -C /Users/liaoxuanbin/xbash/ohmyposh --no-optional-locks -c core.quotepath=false -c color.status=false status -unormal --branch --porcelain=2) - 11.395875ms
[DEBUG] 16:50:13.549 properties.go:GetString:28 → branch_icon:  
[DEBUG] 16:50:13.549 properties.go:GetKeyValueMap:46 → mapped_branches: map[]
[DEBUG] 16:50:13.549 properties.go:GetString:28 → branch_template: 
[DEBUG] 16:50:13.549 terminal.go:HasFolder:193 → false
[TRACE] 16:50:13.549 terminal.go:HasFolder(/Users/liaoxuanbin/xbash/ohmyposh/.git/rebase-merge) - 8.25µs
[DEBUG] 16:50:13.549 terminal.go:HasFolder:193 → false
[TRACE] 16:50:13.549 terminal.go:HasFolder(/Users/liaoxuanbin/xbash/ohmyposh/.git/rebase-apply) - 2.625µs
[DEBUG] 16:50:13.549 properties.go:GetString:28 → commit_icon: 
[DEBUG] 16:50:13.550 terminal.go:HasFilesInDir:164 → false
[TRACE] 16:50:13.550 terminal.go:HasFilesInDir(MERGE_MSG) - 51.667µs
[DEBUG] 16:50:13.550 terminal.go:HasFilesInDir:164 → false
[TRACE] 16:50:13.550 terminal.go:HasFilesInDir(CHERRY_PICK_HEAD) - 3.542µs
[DEBUG] 16:50:13.550 terminal.go:HasFilesInDir:164 → false
[TRACE] 16:50:13.550 terminal.go:HasFilesInDir(REVERT_HEAD) - 3.209µs
[DEBUG] 16:50:13.550 terminal.go:HasFilesInDir:164 → false
[TRACE] 16:50:13.550 terminal.go:HasFilesInDir(sequencer/todo) - 3µs
[DEBUG] 16:50:13.550 properties.go:GetString:28 → branch_identical_icon: ≡
[DEBUG] 16:50:13.550 properties.go:GetBool:22 → fetch_upstream_icon: true
[DEBUG] 16:50:13.550 properties.go:GetKeyValueMap:46 → upstream_icons: map[]
[DEBUG] 16:50:13.550 properties.go:GetString:28 → github_icon: 
[DEBUG] 16:50:13.550 text.go:patchTemplate:125 →  {{ .Data.UpstreamIcon }}{{ .Data.HEAD }}{{if .Data.BranchStatus }} {{ .Data.BranchStatus }}{{ end }}{{ if .Data.Working.Changed }}  {{ .Data.Working.String }}{{ end }}{{ if and (.Data.Working.Changed) (.Data.Staging.Changed) }} |{{ end }}{{ if .Data.Staging.Changed }}  {{ .Data.Staging.String }}{{ end }}{{ if gt .Data.StashCount 0 }}  {{ .Data.StashCount }}{{ end }} 
[ERROR] 16:50:13.550 terminal.go:FileContent:220 → open /Users/liaoxuanbin/xbash/ohmyposh/.git/logs/refs/stash: no such file or directory
[TRACE] 16:50:13.550 terminal.go:FileContent(/Users/liaoxuanbin/xbash/ohmyposh/.git/logs/refs/stash) - 32.708µs
[TRACE] 16:50:13.550 text.go:Render( {{ .UpstreamIcon }}{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }}  {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }}  {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }}  {{ .StashCount }}{{ end }} ) - 331.25µs
[TRACE] 16:50:13.550 text.go:Render(diamond) - 125ns
[TRACE] 16:50:13.550 terminal.go:Shell() - 209ns
[TRACE] 16:50:13.550 terminal.go:Shell() - 42ns
[TRACE] 16:50:13.550 terminal.go:Flags() - 41ns
[DEBUG] 16:50:13.550 home.go:12 → /Users/liaoxuanbin
[TRACE] 16:50:13.550 terminal.go:GOOS() - 0s
[TRACE] 16:50:13.550 terminal.go:Flags() - 42ns
[DEBUG] 16:50:13.550 segment.go:isToggled:228 → no toggles found
[DEBUG] 16:50:13.550 properties.go:GetInt:40 → precision: 2
[TRACE] 16:50:13.550 terminal.go:Flags() - 83ns
[DEBUG] 16:50:13.550 home.go:12 → /Users/liaoxuanbin
[TRACE] 16:50:13.550 terminal.go:GOOS() - 42ns
[DEBUG] 16:50:13.550 segment.go:Execute:111 → segment: Executiontime
[DEBUG] 16:50:13.550 segment.go:isToggled:228 → no toggles found
[DEBUG] 16:50:13.550 home.go:12 → /Users/liaoxuanbin
[TRACE] 16:50:13.550 terminal.go:GOOS() - 0s
[DEBUG] 16:50:13.550 properties.go:GetBool:22 → always_enabled: false
[DEBUG] 16:50:13.550 segment.go:Execute:111 → segment: Text
[TRACE] 16:50:13.550 terminal.go:ExecutionTime() - 208ns
[DEBUG] 16:50:13.550 segment.go:isToggled:228 → no toggles found
[DEBUG] 16:50:13.550 properties.go:GetFloat64:34 → threshold: 0.000000
[DEBUG] 16:50:13.550 properties.go:GetString:28 → style: dallas
[TRACE] 16:50:13.550 terminal.go:Flags() - 42ns
[DEBUG] 16:50:13.550 home.go:12 → /Users/liaoxuanbin
[TRACE] 16:50:13.550 terminal.go:GOOS() - 42ns
[DEBUG] 16:50:13.550 segment.go:Execute:111 → segment: Root
[DEBUG] 16:50:13.550 segment.go:isToggled:228 → no toggles found
[TRACE] 16:50:13.550 terminal_unix.go:Root() - 375ns
[TRACE] 16:50:13.550 text.go:Render(  ) - 125ns
[TRACE] 16:50:13.550 text.go:Render(plain) - 125ns
[DEBUG] 16:50:13.550 text.go:patchTemplate:125 →  {{ .Data.FormattedMs }}s <#ffffff></>
[TRACE] 16:50:13.550 text.go:Render( {{ .FormattedMs }}s <#ffffff></>) - 343.417µs
[TRACE] 16:50:13.550 text.go:Render(diamond) - 83ns
[TRACE] 16:50:13.551 text.go:Render(diamond) - 125ns
[DEBUG] 16:50:13.551 text.go:patchTemplate:125 →  <#ffffff>MEM:</> {{ round .Data.PhysicalPercentUsed .Data.Precision }}% ({{ (div ((sub .Data.PhysicalTotalMemory .Data.PhysicalFreeMemory)|float64) 1073741824.0) }}/{{ (div .Data.PhysicalTotalMemory 1073741824.0) }}GB)
[TRACE] 16:50:13.551 text.go:Render( <#ffffff>MEM:</> {{ round .PhysicalPercentUsed .Precision }}% ({{ (div ((sub .PhysicalTotalMemory .PhysicalFreeMemory)|float64) 1073741824.0) }}/{{ (div .PhysicalTotalMemory 1073741824.0) }}GB)) - 150.375µs
[TRACE] 16:50:13.551 text.go:Render(diamond) - 83ns
[DEBUG] 16:50:13.552 terminal_unix.go:TerminalWidth:85 → terminal width: 120
[TRACE] 16:50:13.552 terminal_unix.go:TerminalWidth() - 1.334833ms
[TRACE] 16:50:13.552 terminal.go:Shell() - 41ns
[TRACE] 16:50:13.552 terminal.go:Shell() - 42ns
[TRACE] 16:50:13.552 terminal.go:Flags() - 41ns
[DEBUG] 16:50:13.552 home.go:12 → /Users/liaoxuanbin
[TRACE] 16:50:13.552 terminal.go:GOOS() - 42ns
[DEBUG] 16:50:13.552 segment.go:Execute:111 → segment: Status
[DEBUG] 16:50:13.552 segment.go:isToggled:228 → no toggles found
[TRACE] 16:50:13.552 terminal.go:StatusCodes() - 42ns
[DEBUG] 16:50:13.552 properties.go:GetString:28 → status_template: {{ .Code }}
[TRACE] 16:50:13.552 terminal.go:Flags() - 84ns
[DEBUG] 16:50:13.552 home.go:12 → /Users/liaoxuanbin
[TRACE] 16:50:13.552 terminal.go:GOOS() - 41ns
[DEBUG] 16:50:13.552 segment.go:Execute:111 → segment: Path
[DEBUG] 16:50:13.552 segment.go:isToggled:228 → no toggles found
[DEBUG] 16:50:13.552 text.go:patchTemplate:125 → {{ .Data.Code }}
[DEBUG] 16:50:13.552 properties.go:GetBool:22 → display_cygpath: false
[TRACE] 16:50:13.552 terminal.go:GOOS() - 42ns
[TRACE] 16:50:13.552 separator.go:Separator() - 42ns
[TRACE] 16:50:13.552 terminal.go:Shell() - 42ns
[TRACE] 16:50:13.552 terminal.go:Shell() - 42ns
[TRACE] 16:50:13.552 terminal.go:GOOS() - 42ns
[DEBUG] 16:50:13.552 properties.go:GetBool:22 → mapped_locations_enabled: true
[DEBUG] 16:50:13.552 properties.go:GetString:28 → windows_registry_icon: 
[DEBUG] 16:50:13.552 properties.go:GetString:28 → windows_registry_icon: 
[DEBUG] 16:50:13.552 home.go:12 → /Users/liaoxuanbin
[TRACE] 16:50:13.552 separator.go:Separator() - 42ns
[TRACE] 16:50:13.552 terminal.go:GOOS() - 41ns
[TRACE] 16:50:13.552 terminal.go:GOOS() - 42ns
[DEBUG] 16:50:13.552 properties.go:GetString:28 → home_icon: home
[DEBUG] 16:50:13.552 properties.go:GetKeyValueMap:46 → mapped_locations: map[]
[TRACE] 16:50:13.552 separator.go:Separator() - 0s
[TRACE] 16:50:13.552 terminal.go:GOOS() - 42ns
[TRACE] 16:50:13.552 terminal.go:GOOS() - 41ns
[TRACE] 16:50:13.552 separator.go:Separator() - 0s
[TRACE] 16:50:13.552 terminal.go:GOOS() - 0s
[TRACE] 16:50:13.552 terminal.go:GOOS() - 41ns
[TRACE] 16:50:13.552 terminal.go:GOOS() - 41ns
[TRACE] 16:50:13.552 terminal.go:GOOS() - 0s
[TRACE] 16:50:13.552 terminal.go:GOOS() - 42ns
[TRACE] 16:50:13.552 text.go:Render({{ .Code }}) - 154.083µs
[DEBUG] 16:50:13.552 properties.go:GetBool:22 → always_enabled: true
[DEBUG] 16:50:13.552 properties.go:GetString:28 → gitdir_format: 
[DEBUG] 16:50:13.552 properties.go:GetString:28 → style: agnoster_full
[DEBUG] 16:50:13.552 properties.go:GetStringArray:52 → cycle: []
[DEBUG] 16:50:13.552 properties.go:GetString:28 → folder_separator_template: 
[DEBUG] 16:50:13.552 properties.go:GetString:28 → folder_separator_icon:   
[DEBUG] 16:50:13.552 properties.go:GetBool:22 → cycle_folder_separator: false
[DEBUG] 16:50:13.552 properties.go:GetString:28 → folder_format: %s
[DEBUG] 16:50:13.552 properties.go:GetString:28 → edge_format: %s
[DEBUG] 16:50:13.552 properties.go:GetString:28 → left_format: %s
[DEBUG] 16:50:13.552 properties.go:GetString:28 → right_format: %s
[TRACE] 16:50:13.552 terminal.go:Flags() - 0s
[TRACE] 16:50:13.552 terminal.go:GOOS() - 41ns
[TRACE] 16:50:13.552 terminal.go:StackCount() - 250ns
[TRACE] 16:50:13.552 terminal_unix.go:DirIsWritable(/Users/liaoxuanbin/xbash/ohmyposh) - 8.459µs
[DEBUG] 16:50:13.552 text.go:patchTemplate:125 →   {{ .Data.Path }} 
[TRACE] 16:50:13.552 text.go:Render(  {{ .Path }} ) - 20.708µs
[TRACE] 16:50:13.552 text.go:Render(diamond) - 83ns
[TRACE] 16:50:13.552 text.go:Render(  ) - 42ns
[DEBUG] 16:50:13.552 text.go:patchTemplate:125 → {{ if gt .Data.Code 0 }}#ef5350{{ end }}
[TRACE] 16:50:13.552 text.go:Render({{ if gt .Code 0 }}#ef5350{{ end }}) - 14.958µs
[TRACE] 16:50:13.552 text.go:Render(plain) - 41ns
[DEBUG] 16:50:13.552 text.go:patchTemplate:125 → {{ if gt .Data.Code 0 }}#ef5350{{ end }}
[TRACE] 16:50:13.552 text.go:Render({{ if gt .Code 0 }}#ef5350{{ end }}) - 17.583µs
[TRACE] 16:50:13.552 terminal.go:Shell() - 41ns
[TRACE] 16:50:13.552 terminal.go:Shell() - 41ns
[TRACE] 16:50:13.552 terminal.go:Flags() - 42ns
[TRACE] 16:50:13.552 terminal.go:Shell() - 0s
[DEBUG] 16:50:13.552 home.go:12 → /Users/liaoxuanbin
[TRACE] 16:50:13.552 path.go:Path() - 11.792µs
[TRACE] 16:50:13.552 terminal.go:Flags() - 0s

Metadata

Metadata

Labels

🐛 bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions