JanDeDobbeleer / oh-my-posh

The most customisable and low-latency cross platform/shell prompt renderer

Home Page:https://ohmyposh.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fish on linux, one character on the left is missing

a15355447898a opened this issue · comments

Code of Conduct

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

What happened?

He looks like this now.
image

image

Characters in red boxes are not displayed

I checked the source code, and the corresponding character should be \u256d.

I'm pretty sure my font (CaskaydiaMono Nerd Font Mono) has this character in it

image

This problem can be reproduced on both wezterm and konsole.

image

Theme

atomic

.oh-my-posh-themes/atomic.omp.json

{
  "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
  "blocks": [
    {
      "alignment": "left",
      "segments": [
        {
          "background": "#0077c2",
          "foreground": "#ffffff",
          "leading_diamond": "\u256d\u2500\ue0b6",
          "style": "diamond",
          "template": "\uf120 {{ .Name }} ",
          "type": "shell"
        },
        {
          "background": "#ef5350",
          "foreground": "#FFFB38",
          "style": "diamond",
          "template": "<parentBackground>\ue0b0</> \uf292 ",
          "type": "root"
        },
        {
          "background": "#FF9248",
          "foreground": "#2d3436",
          "powerline_symbol": "\ue0b0",
          "properties": {
            "folder_icon": " \uf07b ",
            "home_icon": "\ue617",
            "style": "folder"
          },
          "style": "powerline",
          "template": " \uf07b\uea9c {{ .Path }} ",
          "type": "path"
        },
        {
          "background": "#FFFB38",
          "background_templates": [
            "{{ if or (.Working.Changed) (.Staging.Changed) }}#ffeb95{{ end }}",
            "{{ if and (gt .Ahead 0) (gt .Behind 0) }}#c5e478{{ end }}",
            "{{ if gt .Ahead 0 }}#C792EA{{ end }}",
            "{{ if gt .Behind 0 }}#C792EA{{ end }}"
          ],
          "foreground": "#011627",
          "powerline_symbol": "\ue0b0",
          "properties": {
            "branch_icon": "\ue725 ",
            "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 }}<#ef5350> \uf046 {{ .Staging.String }}</>{{ end }} ",
          "type": "git"
        },
        {
          "background": "#83769c",
          "foreground": "#ffffff",
          "properties": {
            "style": "roundrock",
            "threshold": 0
          },
          "style": "diamond",
          "template": " \ueba2 {{ .FormattedMs }}\u2800",
          "trailing_diamond": "\ue0b4",
          "type": "executiontime"
        }
      ],
      "type": "prompt"
    },
    {
      "alignment": "right",
      "segments": [
        {
          "background": "#303030",
          "foreground": "#3C873A",
          "leading_diamond": "\ue0b6",
          "properties": {
            "fetch_package_manager": true,
            "npm_icon": " <#cc3a3a>\ue5fa</> ",
            "yarn_icon": " <#348cba>\ue6a7</>"
          },
          "style": "diamond",
          "template": "\ue718 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }}",
          "trailing_diamond": "\ue0b4 ",
          "type": "node"
        },
        {
          "background": "#306998",
          "foreground": "#FFE873",
          "leading_diamond": "\ue0b6",
          "style": "diamond",
          "template": "\ue235 {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }}",
          "trailing_diamond": "\ue0b4 ",
          "type": "python"
        },
        {
          "background": "#0e8ac8",
          "foreground": "#ffffff",
          "leading_diamond": "\ue0b6",
          "style": "diamond",
          "template": "\ue738 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}",
          "trailing_diamond": "\ue0b4 ",
          "type": "java"
        },
        {
          "background": "#0e0e0e",
          "foreground": "#0d6da8",
          "leading_diamond": "\ue0b6",
          "style": "diamond",
          "template": "\ue77f {{ if .Unsupported }}\uf071{{ else }}{{ .Full }}{{ end }}",
          "trailing_diamond": "\ue0b4 ",
          "type": "dotnet"
        },
        {
          "background": "#ffffff",
          "foreground": "#06aad5",
          "leading_diamond": "\ue0b6",
          "style": "diamond",
          "template": "\ue626 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}",
          "trailing_diamond": "\ue0b4 ",
          "type": "go"
        },
        {
          "background": "#f3f0ec",
          "foreground": "#925837",
          "leading_diamond": "\ue0b6",
          "style": "diamond",
          "template": "\ue7a8 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}",
          "trailing_diamond": "\ue0b4 ",
          "type": "rust"
        },
        {
          "background": "#e1e8e9",
          "foreground": "#055b9c",
          "leading_diamond": " \ue0b6",
          "style": "diamond",
          "template": "\ue798 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}",
          "trailing_diamond": "\ue0b4 ",
          "type": "dart"
        },
        {
          "background": "#ffffff",
          "foreground": "#ce092f",
          "leading_diamond": " \ue0b6",
          "style": "diamond",
          "template": "\ue753 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}",
          "trailing_diamond": "\ue0b4 ",
          "type": "angular"
        },
        {
          "background": "#1e293b",
          "foreground": "#ffffff",
          "leading_diamond": " \ue0b6",
          "style": "diamond",
          "template": "{{ if .Error }}{{ .Error }}{{ else }}Nx {{ .Full }}{{ end }}",
          "trailing_diamond": "\ue0b4 ",
          "type": "nx"
        },
        {
          "background": "#945bb3",
          "foreground": "#359a25",
          "leading_diamond": " \ue0b6",
          "style": "diamond",
          "template": "<#ca3c34>\ue624</> {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}",
          "trailing_diamond": "\ue0b4 ",
          "type": "julia"
        },
        {
          "background": "#ffffff",
          "foreground": "#9c1006",
          "leading_diamond": "\ue0b6",
          "style": "diamond",
          "template": "\ue791 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}",
          "trailing_diamond": "\ue0b4 ",
          "type": "ruby"
        },
        {
          "background": "#ffffff",
          "foreground": "#5398c2",
          "leading_diamond": "\ue0b6",
          "style": "diamond",
          "template": "\uf104<#f5bf45>\uf0e7</>\uf105 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}",
          "trailing_diamond": "\ue0b4 ",
          "type": "azfunc"
        },
        {
          "background": "#565656",
          "foreground": "#faa029",
          "leading_diamond": "\ue0b6",
          "style": "diamond",
          "template": "\ue7ad {{.Profile}}{{if .Region}}@{{.Region}}{{end}}",
          "trailing_diamond": "\ue0b4 ",
          "type": "aws"
        },
        {
          "background": "#316ce4",
          "foreground": "#ffffff",
          "leading_diamond": "\ue0b6",
          "style": "diamond",
          "template": "\uf308 {{.Context}}{{if .Namespace}} :: {{.Namespace}}{{end}}",
          "trailing_diamond": "\ue0b4",
          "type": "kubectl"
        },
        {
          "background": "#b2bec3",
          "foreground": "#222222",
          "leading_diamond": "\ue0b6",
          "trailing_diamond": "<transparent,background>\ue0b2</>",
          "properties": {
            "linux": "\ue712",
            "macos": "\ue711",
            "windows": "\ue70f"
          },
          "style": "diamond",
          "template": " {{ if .WSL }}WSL at {{ end }}{{.Icon}} ",
          "type": "os"
        },
        {
          "background": "#f36943",
          "background_templates": [
            "{{if eq \"Charging\" .State.String}}#b8e994{{end}}",
            "{{if eq \"Discharging\" .State.String}}#fff34e{{end}}",
            "{{if eq \"Full\" .State.String}}#33DD2D{{end}}"
          ],
          "foreground": "#262626",
          "invert_powerline": true,
          "powerline_symbol": "\ue0b2",
          "properties": {
            "charged_icon": "\uf240 ",
            "charging_icon": "\uf1e6 ",
            "discharging_icon": "\ue234 "
          },
          "style": "powerline",
          "template": " {{ if not .Error }}{{ .Icon }}{{ .Percentage }}{{ end }}{{ .Error }}\uf295 ",
          "type": "battery"
        },
        {
          "background": "#40c4ff",
          "foreground": "#ffffff",
          "invert_powerline": true,
          "leading_diamond": "\ue0b2",
          "properties": {
            "time_format": "_2,15:04"
          },
          "style": "diamond",
          "template": " \uf073 {{ .CurrentDate | date .Format }} ",
          "trailing_diamond": "\ue0b4",
          "type": "time"
        }
      ],
      "type": "prompt"
    },
    {
      "alignment": "left",
      "newline": true,
      "segments": [
        {
          "foreground": "#21c7c7",
          "style": "plain",
          "template": "\u2570\u2500",
          "type": "text"
        },
        {
          "foreground": "#e0f8ff",
          "foreground_templates": ["{{ if gt .Code 0 }}#ef5350{{ end }}"],
          "properties": {
            "always_enabled": true
          },
          "style": "plain",
          "template": "\ue285\ueab6 ",
          "type": "status"
        }
      ],
      "type": "prompt"
    }
  ],
  "version": 2
}

What OS are you seeing the problem on?

Linux

Which shell are you using?

fish

Log output

Version: 21.13.0

Shell: fish (3.7.1)

Prompt:

╭─ fish      0ms⠀                                                                       99   10,09:55 
╰─

Segments:

ConsoleTitle(false)                        -   0 ms
Shell(true)                                -   0 ms
Root(false)                                -   0 ms
Path(true)                                 -   0 ms
Git(false)                                 -   0 ms
Executiontime(true)                        -   0 ms
Node(false)                                -   0 ms
Python(false)                              -   0 ms
Java(false)                                -   0 ms
Dotnet(false)                              -   0 ms
Go(false)                                  -   0 ms
Rust(false)                                -   0 ms
Dart(false)                                -   0 ms
Angular(false)                             -   0 ms
Nx(false)                                  -   0 ms
Julia(false)                               -   0 ms
Ruby(false)                                -   0 ms
Azfunc(false)                              -   0 ms
Aws(false)                                 -   0 ms
Kubectl(false)                             -  36 ms
Os(true)                                   -   0 ms
Battery(true)                              -   0 ms
Time(true)                                 -   0 ms
Text(true)                                 -   0 ms
Status(true)                               -   0 ms

Run duration: 40.953599ms

Cache path: /home/sunwenbin/.cache/oh-my-posh

Config path: /home/sunwenbin/.oh-my-posh-themes/atomic.omp.json

Logs:

[DEBUG] 09:55:06.757 shell.go:Getenv:326 → WezTerm
[TRACE] 09:55:06.757 shell.go:Getenv(TERM_PROGRAM) - 35.45µs
[DEBUG] 09:55:06.757 shell.go:Getenv:326 → NO DATA
[TRACE] 09:55:06.757 shell.go:Getenv(OMP_CACHE_DIR) - 1.89µs
[DEBUG] 09:55:06.757 shell.go:Getenv:326 → NO DATA
[TRACE] 09:55:06.757 shell.go:Getenv(XDG_CACHE_HOME) - 1.808µs
[TRACE] 09:55:06.757 shell_unix.go:CachePath() - 12.298µs
[DEBUG] 09:55:06.757 shell.go:Getenv:326 → /home/sunwenbin/.oh-my-posh-themes/atomic.omp.json
[TRACE] 09:55:06.757 shell.go:Getenv(POSH_THEME) - 2.284µs
[DEBUG] 09:55:06.757 shell_unix.go:Platform:87 → arch
[TRACE] 09:55:06.757 shell.go:resolveConfigPath() - 9.094µs
[TRACE] 09:55:06.757 shell.go:Init() - 179.951µs
[TRACE] 09:55:06.757 shell.go:Flags() - 35ns
[TRACE] 09:55:06.757 config.go:loadConfig() - 356.368µs
[TRACE] 09:55:06.757 shell.go:Flags() - 47ns
[DEBUG] 09:55:06.757 shell.go:Getenv:326 → NO DATA
[TRACE] 09:55:06.757 shell.go:Getenv(OMP_CACHE_DISABLED) - 2.083µs
[DEBUG] 09:55:06.758 shell.go:Shell:601 → no shell name provided in flags, trying to detect it
[DEBUG] 09:55:06.758 shell.go:Shell:609 → process name: fish
[TRACE] 09:55:06.758 shell.go:Shell() - 581.626µs
[DEBUG] 09:55:06.758 shell.go:Getenv:326 → 3.7.1
[TRACE] 09:55:06.758 shell.go:Getenv(POSH_SHELL_VERSION) - 2.217µs
[DEBUG] 09:55:06.758 debug.go:PrintDebug:22 → Segment: Title
[DEBUG] 09:55:06.758 text.go:Render:72 → Rendering template:
[DEBUG] 09:55:06.758 shell.go:Getenv:326 → NO DATA
[TRACE] 09:55:06.758 shell.go:Getenv(POSH_CURSOR_LINE) - 1.724µs
[DEBUG] 09:55:06.758 shell.go:Getenv:326 → NO DATA
[TRACE] 09:55:06.758 shell.go:Getenv(POSH_CURSOR_COLUMN) - 1.468µs
[TRACE] 09:55:06.758 shell.go:Flags() - 66ns
[TRACE] 09:55:06.758 shell.go:Flags() - 20ns
[TRACE] 09:55:06.758 shell.go:Shell() - 56ns
[TRACE] 09:55:06.758 shell.go:Shell() - 41ns
[TRACE] 09:55:06.758 shell.go:Flags() - 22ns
[TRACE] 09:55:06.758 shell.go:GOOS() - 57ns
[DEBUG] 09:55:06.758 shell.go:Pwd:356 → /home/sunwenbin
[TRACE] 09:55:06.758 shell.go:Pwd() - 7.837µs
[TRACE] 09:55:06.758 shell.go:GOOS() - 35ns
[DEBUG] 09:55:06.758 segment.go:SetEnabled:557 → Segment: Executiontime
[DEBUG] 09:55:06.758 properties.go:GetBool:22 → always_enabled: false
[TRACE] 09:55:06.758 shell.go:Flags() - 234ns
[TRACE] 09:55:06.758 shell.go:ExecutionTime() - 48ns
[DEBUG] 09:55:06.758 properties.go:GetFloat64:34 → threshold: 0.000000
[DEBUG] 09:55:06.758 properties.go:GetString:28 → roundrock
[TRACE] 09:55:06.758 shell_unix.go:Root() - 213ns
[TRACE] 09:55:06.758 shell.go:Shell() - 50ns
[TRACE] 09:55:06.758 shell.go:StatusCodes() - 64ns
[TRACE] 09:55:06.758 shell.go:Pwd() - 118ns
[TRACE] 09:55:06.758 shell.go:GOOS() - 50ns
[DEBUG] 09:55:06.758 shell_unix.go:IsWsl:35 → false
[TRACE] 09:55:06.758 shell_unix.go:IsWsl() - 4.454µs
[DEBUG] 09:55:06.758 segment.go:SetEnabled:557 → Segment: Root
[TRACE] 09:55:06.758 shell_unix.go:Root() - 349ns
[TRACE] 09:55:06.758 shell.go:Flags() - 18ns
[DEBUG] 09:55:06.758 shell.go:TemplateCache:782 → environment: [PWD=/home/sunwenbin GTK_IM_MODULE=fcitx GTK_RC_FILES=/etc/gtk/gtkrc:/home/sunwenbin/.gtkrc:/home/sunwenbin/.config/gtkrc EDITOR=nvim HG=/usr/bin/hg JOURNAL_STREAM=8:9855 HOME=/home/sunwenbin ICEAUTHORITY=/run/user/1000/iceauth_YDaWOs NIX_SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt PAM_KWALLET5_LOGIN=/run/user/1000/kwallet5.socket XMODIFIERS=@im=fcitx KDE_SESSION_VERSION=6 WEZTERM_UNIX_SOCKET=/run/user/1000/wezterm/gui-sock-7435 XDG_VTNR=2 WEZTERM_CONFIG_FILE=/home/sunwenbin/.config/wezterm/wezterm.lua XDG_SESSION_TYPE=wayland WEZTERM_CONFIG_DIR=/home/sunwenbin/.config/wezterm XDG_MENU_PREFIX=plasma- PATH=/home/sunwenbin/.config/emacs/bin:/home/sunwenbin/.nix-profile/bin:/home/sunwenbin/.nix-profile/bin:/nix/var/nix/profiles/default/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/var/lib/flatpak/exports/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl USER=sunwenbin XAUTHORITY=/run/user/1000/xauth_ABBsnj POSH_THEME=/home/sunwenbin/.oh-my-posh-themes/atomic.omp.json omp_last_status_generation=0 XDG_DATA_DIRS=/home/sunwenbin/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share:/home/sunwenbin/.nix-profile/share:/nix/var/nix/profiles/default/share XDG_ACTIVATION_TOKEN=kwin-8 POSH_SHELL_VERSION=3.7.1 QT_AUTO_SCREEN_SCALE_FACTOR=0 MOTD_SHOWN=pam WEZTERM_EXECUTABLE=/usr/bin/wezterm-gui SYSTEMD_EXEC_PID=3020 SHLVL=1 DESKTOP_SESSION=plasma CLOJURE_HOME=/usr/share/clojure XDG_SESSION_ID=2 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus TERM_PROGRAM_VERSION=20240203-110809-5046fc22 INVOCATION_ID=f8d19f89931b4189816edc605c990d83 COLORTERM=truecolor DEBUGINFOD_URLS=https://debuginfod.archlinux.org  QT_WAYLAND_RECONNECT=1 TERM_PROGRAM=WezTerm SHELL=/usr/bin/zsh QT_IM_MODULE=fcitx NIX_PROFILES=/nix/var/nix/profiles/default /home/sunwenbin/.nix-profile XDG_SEAT=seat0 WAYLAND_DISPLAY=wayland-0 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session2 XDG_SESSION_CLASS=user XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 GTK2_RC_FILES=/etc/gtk-2.0/gtkrc:/home/sunwenbin/.gtkrc-2.0:/home/sunwenbin/.config/gtkrc-2.0 WEZTERM_PANE=2 XDG_SESSION_DESKTOP=KDE XDG_CURRENT_DESKTOP=KDE XDG_RUNTIME_DIR=/run/user/1000 OLDPWD=/home/sunwenbin SESSION_MANAGER=local/SunWenBinArch:@/tmp/.ICE-unix/3170,unix/SunWenBinArch:/tmp/.ICE-unix/3170 MANAGERPID=2944 KDE_FULL_SESSION=true XDG_CONFIG_DIRS=/home/sunwenbin/.config/kdedefaults:/etc/xdg WEZTERM_EXECUTABLE_DIR=/usr/bin DISPLAY=:0 MAIL=/var/spool/mail/sunwenbin LOGNAME=sunwenbin LANGUAGE= LANG=zh_CN.UTF-8 KDE_SESSION_UID=1000 TERM=xterm-256color KGLOBALACCELD_PLATFORM=org.kde.kwin KDE_APPLICATIONS_AS_SCOPE=1]
[TRACE] 09:55:06.758 shell.go:Pwd() - 165ns
[DEBUG] 09:55:06.759 shell_unix.go:IsWsl:35 → false
[TRACE] 09:55:06.759 shell_unix.go:IsWsl() - 3.176µs
[TRACE] 09:55:06.759 shell.go:GOOS() - 17ns
[TRACE] 09:55:06.759 shell.go:GOOS() - 16ns
[TRACE] 09:55:06.759 shell.go:Flags() - 156ns
[TRACE] 09:55:06.759 shell.go:GOOS() - 16ns
[TRACE] 09:55:06.759 shell.go:GOOS() - 16ns
[TRACE] 09:55:06.759 shell.go:GOOS() - 15ns
[TRACE] 09:55:06.759 shell.go:GOOS() - 15ns
[TRACE] 09:55:06.759 shell.go:GOOS() - 14ns
[TRACE] 09:55:06.759 shell.go:GOOS() - 16ns
[TRACE] 09:55:06.759 shell.go:Pwd() - 85ns
[TRACE] 09:55:06.759 shell.go:GOOS() - 17ns
[TRACE] 09:55:06.759 shell.go:GOOS() - 15ns
[TRACE] 09:55:06.759 shell.go:GOOS() - 46ns
[DEBUG] 09:55:06.759 shell.go:User:494 → sunwenbin
[DEBUG] 09:55:06.759 segment.go:SetEnabled:557 → Segment: Shell
[TRACE] 09:55:06.759 shell.go:User() - 1.795µs
[DEBUG] 09:55:06.759 shell.go:Host:511 → SunWenBinArch
[DEBUG] 09:55:06.759 properties.go:GetKeyValueMap:46 → mapped_shell_names: map[]
[TRACE] 09:55:06.759 shell.go:Host() - 2.981µs
[TRACE] 09:55:06.759 shell.go:GOOS() - 88ns
[TRACE] 09:55:06.759 shell.go:Shell() - 73ns
[TRACE] 09:55:06.759 shell.go:Flags() - 16ns
[DEBUG] 09:55:06.759 shell_unix.go:Platform:87 → arch
[DEBUG] 09:55:06.759 shell.go:Getenv:326 → 1
[TRACE] 09:55:06.759 shell.go:Getenv(SHLVL) - 2.379µs
[TRACE] 09:55:06.759 shell.go:TemplateCache() - 360.045µs
[TRACE] 09:55:06.759 shell.go:TemplateCache() - 5.488µs
[TRACE] 09:55:06.759 shell.go:TemplateCache() - 242.277µs
[TRACE] 09:55:06.759 shell.go:StackCount() - 70ns
[TRACE] 09:55:06.759 shell_unix.go:DirIsWritable(/home/sunwenbin) - 3.874µs
[TRACE] 09:55:06.759 shell.go:TemplateCache() - 100ns
[TRACE] 09:55:06.759 shell.go:GOOS() - 46ns
[DEBUG] 09:55:06.759 segment.go:SetEnabled:557 → Segment: Git
[DEBUG] 09:55:06.759 shell_unix.go:IsWsl:35 → false
[TRACE] 09:55:06.759 shell_unix.go:IsWsl() - 2.244µs
[TRACE] 09:55:06.759 shell_unix.go:IsWsl2() - 4.195µs
[TRACE] 09:55:06.759 shell.go:GOOS() - 32ns
[DEBUG] 09:55:06.759 shell.go:CommandPath:553 → /usr/bin/git
[TRACE] 09:55:06.759 shell.go:CommandPath(git) - 19.095µs
[TRACE] 09:55:06.759 shell.go:HasCommand(git) - 21.09µs
[TRACE] 09:55:06.759 shell.go:Pwd() - 44ns
[ERROR] 09:55:06.759 shell.go:HasParentFilePath:697 → stat .git: no such file or directory
[TRACE] 09:55:06.759 shell.go:HasParentFilePath(.git) - 36.38µs
[DEBUG] 09:55:06.759 properties.go:GetBool:22 → fetch_bare_info: false
[DEBUG] 09:55:06.759 text.go:Render:72 → Rendering template:   {{ .FormattedMs }}⠀
[DEBUG] 09:55:06.759 text.go:Render:72 → Rendering template:  {{ .Name }}
[TRACE] 09:55:06.759 shell.go:TemplateCache() - 281ns
[TRACE] 09:55:06.759 shell.go:TemplateCache() - 253ns
[DEBUG] 09:55:06.759 text.go:Render:72 → Rendering template:   {{ .Path }}
[TRACE] 09:55:06.760 shell.go:TemplateCache() - 217ns
[DEBUG] 09:55:06.760 text.go:Render:72 → Rendering template: diamond
[DEBUG] 09:55:06.760 text.go:Render:72 → Rendering template: diamond
[DEBUG] 09:55:06.760 text.go:Render:72 → Rendering template: powerline
[DEBUG] 09:55:06.760 text.go:Render:72 → Rendering template: powerline
[DEBUG] 09:55:06.760 text.go:Render:72 → Rendering template: diamond
[TRACE] 09:55:06.760 shell.go:Shell() - 69ns
[TRACE] 09:55:06.760 shell.go:Shell() - 36ns
[TRACE] 09:55:06.760 shell.go:Shell() - 18ns
[TRACE] 09:55:06.760 shell.go:Shell() - 18ns
[TRACE] 09:55:06.760 shell.go:Flags() - 53ns
[TRACE] 09:55:06.760 shell.go:Pwd() - 64ns
[TRACE] 09:55:06.760 shell.go:GOOS() - 52ns
[DEBUG] 09:55:06.760 segment.go:SetEnabled:557 → Segment: Time
[DEBUG] 09:55:06.760 properties.go:GetString:28 → _2,15:04
[TRACE] 09:55:06.760 shell.go:TemplateCache() - 46ns
[TRACE] 09:55:06.760 shell.go:Flags() - 18ns
[TRACE] 09:55:06.760 shell.go:Pwd() - 41ns
[TRACE] 09:55:06.760 shell.go:GOOS() - 34ns
[DEBUG] 09:55:06.760 segment.go:SetEnabled:557 → Segment: Node
[DEBUG] 09:55:06.760 properties.go:GetStringArray:52 → extensions: [*.js *.ts package.json .nvmrc pnpm-workspace.yaml .pnpmfile.cjs .vue]
[DEBUG] 09:55:06.760 properties.go:GetStringArray:52 → folders: []
[DEBUG] 09:55:06.760 properties.go:GetBool:22 → home_enabled: false
[TRACE] 09:55:06.760 shell.go:Pwd() - 29ns
[TRACE] 09:55:06.760 shell.go:Flags() - 17ns
[DEBUG] 09:55:06.760 properties.go:GetString:28 → environment
[TRACE] 09:55:06.760 shell.go:Pwd() - 33ns
[TRACE] 09:55:06.760 shell.go:GOOS() - 18ns
[DEBUG] 09:55:06.760 segment.go:SetEnabled:557 → Segment: Python
[DEBUG] 09:55:06.760 properties.go:GetStringArray:52 → extensions: [*.py *.ipynb pyproject.toml venv.bak]
[DEBUG] 09:55:06.760 properties.go:GetStringArray:52 → folders: [.venv venv virtualenv venv-win pyenv-win]
[DEBUG] 09:55:06.760 properties.go:GetBool:22 → home_enabled: false
[TRACE] 09:55:06.760 shell.go:Flags() - 54ns
[TRACE] 09:55:06.760 shell.go:Pwd() - 32ns
[TRACE] 09:55:06.760 shell.go:Flags() - 145ns
[TRACE] 09:55:06.760 shell.go:Flags() - 18ns
[TRACE] 09:55:06.760 shell.go:Pwd() - 52ns
[TRACE] 09:55:06.760 shell.go:Pwd() - 108ns
[TRACE] 09:55:06.760 shell.go:GOOS() - 51ns
[TRACE] 09:55:06.760 shell.go:Flags() - 154ns
[TRACE] 09:55:06.760 shell.go:GOOS() - 34ns
[DEBUG] 09:55:06.760 segment.go:SetEnabled:557 → Segment: Go
[DEBUG] 09:55:06.760 segment.go:SetEnabled:557 → Segment: Julia
[DEBUG] 09:55:06.760 properties.go:GetStringArray:52 → extensions: [*.jl]
[TRACE] 09:55:06.760 shell.go:Pwd() - 106ns
[DEBUG] 09:55:06.760 properties.go:GetStringArray:52 → folders: []
[DEBUG] 09:55:06.760 properties.go:GetStringArray:52 → extensions: [*.go go.mod]
[TRACE] 09:55:06.760 shell.go:GOOS() - 102ns
[DEBUG] 09:55:06.760 properties.go:GetBool:22 → home_enabled: false
[DEBUG] 09:55:06.760 properties.go:GetStringArray:52 → folders: []
[TRACE] 09:55:06.760 shell.go:Pwd() - 29ns
[DEBUG] 09:55:06.760 properties.go:GetBool:22 → home_enabled: false
[DEBUG] 09:55:06.760 segment.go:SetEnabled:557 → Segment: Nx
[DEBUG] 09:55:06.760 shell.go:Getenv:326 → NO DATA
[TRACE] 09:55:06.760 shell.go:Pwd() - 43ns
[TRACE] 09:55:06.760 shell.go:Flags() - 16ns
[TRACE] 09:55:06.760 shell.go:Getenv(JAVA_HOME) - 3.6µs
[DEBUG] 09:55:06.760 properties.go:GetStringArray:52 → extensions: [workspace.json nx.json]
[TRACE] 09:55:06.760 shell.go:Pwd() - 96ns
[TRACE] 09:55:06.760 shell.go:Flags() - 68ns
[TRACE] 09:55:06.760 shell.go:GOOS() - 36ns
[DEBUG] 09:55:06.760 properties.go:GetStringArray:52 → folders: []
[TRACE] 09:55:06.760 shell.go:GOOS() - 49ns
[TRACE] 09:55:06.760 shell.go:Pwd() - 34ns
[DEBUG] 09:55:06.760 properties.go:GetStringArray:52 → extensions: [*.rb Rakefile Gemfile]
[TRACE] 09:55:06.760 shell.go:GOOS() - 34ns
[TRACE] 09:55:06.760 shell.go:Pwd() - 59ns
[DEBUG] 09:55:06.760 properties.go:GetStringArray:52 → folders: []
[DEBUG] 09:55:06.760 segment.go:SetEnabled:557 → Segment: Dotnet
[DEBUG] 09:55:06.760 properties.go:GetBool:22 → home_enabled: false
[DEBUG] 09:55:06.760 properties.go:GetStringArray:52 → extensions: [pom.xml build.gradle.kts build.sbt .java-version .deps.edn project.clj build.boot *.java *.class *.gradle *.jar *.clj *.cljc]
[TRACE] 09:55:06.760 shell.go:Pwd() - 30ns
[TRACE] 09:55:06.760 shell.go:Flags() - 18ns
[DEBUG] 09:55:06.760 properties.go:GetStringArray:52 → extensions: [*.cs *.csx *.vb *.sln *.slnf *.csproj *.vbproj *.fs *.fsx *.fsproj global.json]
[DEBUG] 09:55:06.760 properties.go:GetStringArray:52 → folders: []
[TRACE] 09:55:06.760 shell.go:Flags() - 17ns
[DEBUG] 09:55:06.760 properties.go:GetStringArray:52 → folders: []
[TRACE] 09:55:06.760 shell.go:Pwd() - 28ns
[DEBUG] 09:55:06.760 properties.go:GetBool:22 → home_enabled: false
[TRACE] 09:55:06.760 shell.go:Pwd() - 30ns
[TRACE] 09:55:06.760 shell.go:GOOS() - 42ns
[TRACE] 09:55:06.760 shell.go:Pwd() - 32ns
[TRACE] 09:55:06.760 shell.go:Pwd() - 32ns
[TRACE] 09:55:06.760 shell.go:GOOS() - 34ns
[DEBUG] 09:55:06.760 segment.go:SetEnabled:557 → Segment: Rust
[DEBUG] 09:55:06.760 segment.go:SetEnabled:557 → Segment: Azfunc
[TRACE] 09:55:06.760 shell.go:Flags() - 42ns
[DEBUG] 09:55:06.760 properties.go:GetStringArray:52 → extensions: [*.rs Cargo.toml Cargo.lock]
[TRACE] 09:55:06.760 shell.go:Flags() - 25ns
[DEBUG] 09:55:06.760 properties.go:GetStringArray:52 → extensions: [host.json local.settings.json function.json]
[DEBUG] 09:55:06.760 properties.go:GetStringArray:52 → folders: []
[DEBUG] 09:55:06.760 properties.go:GetStringArray:52 → folders: []
[TRACE] 09:55:06.760 shell.go:Pwd() - 30ns
[TRACE] 09:55:06.760 shell.go:Pwd() - 30ns
[DEBUG] 09:55:06.760 properties.go:GetBool:22 → home_enabled: false
[DEBUG] 09:55:06.760 properties.go:GetBool:22 → home_enabled: false
[TRACE] 09:55:06.760 shell.go:GOOS() - 34ns
[TRACE] 09:55:06.760 shell.go:GOOS() - 36ns
[TRACE] 09:55:06.760 shell.go:Pwd() - 29ns
[TRACE] 09:55:06.760 shell.go:Pwd() - 30ns
[DEBUG] 09:55:06.760 segment.go:SetEnabled:557 → Segment: Dart
[DEBUG] 09:55:06.760 segment.go:SetEnabled:557 → Segment: Kubectl
[DEBUG] 09:55:06.760 properties.go:GetStringArray:52 → extensions: [*.dart pubspec.yaml pubspec.yml pubspec.lock]
[TRACE] 09:55:06.760 shell.go:Flags() - 26ns
[DEBUG] 09:55:06.760 properties.go:GetBool:22 → parse_kubeconfig: false
[DEBUG] 09:55:06.760 properties.go:GetStringArray:52 → folders: [.dart_tool]
[TRACE] 09:55:06.760 shell.go:Pwd() - 28ns
[TRACE] 09:55:06.760 shell.go:Pwd() - 27ns
[DEBUG] 09:55:06.760 properties.go:GetBool:22 → home_enabled: false
[TRACE] 09:55:06.760 shell.go:GOOS() - 34ns
[TRACE] 09:55:06.760 shell.go:GOOS() - 35ns
[TRACE] 09:55:06.760 shell.go:Pwd() - 30ns
[DEBUG] 09:55:06.760 segment.go:SetEnabled:557 → Segment: Os
[DEBUG] 09:55:06.760 segment.go:SetEnabled:557 → Segment: Angular
[TRACE] 09:55:06.760 shell.go:Flags() - 16ns
[DEBUG] 09:55:06.760 properties.go:GetStringArray:52 → extensions: [angular.json]
[DEBUG] 09:55:06.760 properties.go:GetStringArray:52 → folders: []
[DEBUG] 09:55:06.760 shell_unix.go:Platform:87 → arch
[TRACE] 09:55:06.760 shell.go:Pwd() - 28ns
[DEBUG] 09:55:06.760 properties.go:GetBool:22 → home_enabled: false
[DEBUG] 09:55:06.760 properties.go:GetBool:22 → display_distro_name: false
[TRACE] 09:55:06.760 shell.go:GOOS() - 36ns
[TRACE] 09:55:06.760 shell.go:Pwd() - 31ns
[DEBUG] 09:55:06.760 segment.go:SetEnabled:557 → Segment: Battery
[DEBUG] 09:55:06.760 properties.go:GetString:28 → 
[TRACE] 09:55:06.760 shell.go:Flags() - 17ns
[TRACE] 09:55:06.760 shell.go:TemplateCache() - 59ns
[TRACE] 09:55:06.760 shell.go:Pwd() - 30ns
[DEBUG] 09:55:06.760 shell_unix.go:IsWsl:35 → false
[TRACE] 09:55:06.760 shell.go:GOOS() - 35ns
[DEBUG] 09:55:06.760 segment.go:SetEnabled:557 → Segment: Aws
[TRACE] 09:55:06.760 shell.go:CommandPath(kubectl) - 23.528µs
[DEBUG] 09:55:06.760 properties.go:GetBool:22 → display_default: true
[TRACE] 09:55:06.760 shell.go:HasCommand(kubectl) - 25.767µs
[DEBUG] 09:55:06.760 shell.go:Getenv:326 → NO DATA
[TRACE] 09:55:06.760 shell.go:Getenv(AWS_VAULT) - 1.837µs
[DEBUG] 09:55:06.760 shell.go:Getenv:326 → NO DATA
[TRACE] 09:55:06.760 shell.go:Getenv(AWS_DEFAULT_PROFILE) - 1.429µs
[DEBUG] 09:55:06.760 shell.go:Getenv:326 → NO DATA
[TRACE] 09:55:06.760 shell.go:Getenv(AWS_PROFILE) - 1.398µs
[DEBUG] 09:55:06.760 shell.go:Getenv:326 → NO DATA
[TRACE] 09:55:06.760 shell.go:Getenv(AWS_REGION) - 1.937µs
[DEBUG] 09:55:06.760 shell.go:Getenv:326 → NO DATA
[TRACE] 09:55:06.760 shell.go:Getenv(AWS_DEFAULT_REGION) - 1.5µs
[DEBUG] 09:55:06.760 shell.go:Getenv:326 → NO DATA
[TRACE] 09:55:06.760 shell.go:Getenv(AWS_CONFIG_FILE) - 1.385µs
[ERROR] 09:55:06.760 shell.go:FileContent:464 → open /home/sunwenbin/.aws/config: no such file or directory
[TRACE] 09:55:06.760 shell.go:FileContent(/home/sunwenbin/.aws/config) - 7.741µs
[TRACE] 09:55:06.760 shell_windows_nix.go:BatteryState() - 96.83µs
[DEBUG] 09:55:06.760 properties.go:GetString:28 → NO DATA
[TRACE] 09:55:06.760 shell.go:TemplateCache() - 65ns
[ERROR] 09:55:06.796 shell.go:RunCommand:529 → exit status 1
[DEBUG] 09:55:06.796 shell.go:RunCommand:531 ↓
    error: current-context must exist in order to minify

[TRACE] 09:55:06.796 shell.go:RunCommand(kubectl config view --output yaml --minify) - 36.041926ms
[DEBUG] 09:55:06.796 properties.go:GetBool:22 → display_error: false
[DEBUG] 09:55:06.796 text.go:Render:72 → Rendering template:   {{ .CurrentDate | date .Format }}
[DEBUG] 09:55:06.796 text.go:Render:72 → Rendering template:  {{ if .WSL }}WSL at {{ end }}{{.Icon}}
[DEBUG] 09:55:06.796 text.go:Render:72 → Rendering template:  {{ if not .Error }}{{ .Icon }}{{ .Percentage }}{{ end }}{{ .Error }}
[TRACE] 09:55:06.796 shell.go:TemplateCache() - 206ns
[TRACE] 09:55:06.796 shell.go:TemplateCache() - 311ns
[TRACE] 09:55:06.797 shell.go:TemplateCache() - 77ns
[DEBUG] 09:55:06.797 text.go:Render:72 → Rendering template: diamond
[DEBUG] 09:55:06.797 text.go:Render:72 → Rendering template: diamond
[DEBUG] 09:55:06.797 text.go:Render:72 → Rendering template: diamond
[DEBUG] 09:55:06.797 text.go:Render:72 → Rendering template: diamond
[DEBUG] 09:55:06.797 text.go:Render:72 → Rendering template: diamond
[DEBUG] 09:55:06.797 text.go:Render:72 → Rendering template: diamond
[DEBUG] 09:55:06.797 text.go:Render:72 → Rendering template: diamond
[DEBUG] 09:55:06.797 text.go:Render:72 → Rendering template: diamond
[DEBUG] 09:55:06.797 text.go:Render:72 → Rendering template: diamond
[DEBUG] 09:55:06.797 text.go:Render:72 → Rendering template: diamond
[DEBUG] 09:55:06.797 text.go:Render:72 → Rendering template: diamond
[DEBUG] 09:55:06.797 text.go:Render:72 → Rendering template: diamond
[DEBUG] 09:55:06.797 text.go:Render:72 → Rendering template: diamond
[DEBUG] 09:55:06.797 text.go:Render:72 → Rendering template: diamond
[DEBUG] 09:55:06.797 text.go:Render:72 → Rendering template: diamond
[DEBUG] 09:55:06.797 text.go:Render:72 → Rendering template: {{if eq "Charging" .State.String}}#b8e994{{end}}
[TRACE] 09:55:06.797 shell.go:TemplateCache() - 117ns
[DEBUG] 09:55:06.797 text.go:Render:72 → Rendering template: {{if eq "Discharging" .State.String}}#fff34e{{end}}
[TRACE] 09:55:06.797 shell.go:TemplateCache() - 69ns
[DEBUG] 09:55:06.797 text.go:Render:72 → Rendering template: {{if eq "Full" .State.String}}#33DD2D{{end}}
[TRACE] 09:55:06.797 shell.go:TemplateCache() - 57ns
[DEBUG] 09:55:06.797 text.go:Render:72 → Rendering template: powerline
[DEBUG] 09:55:06.797 text.go:Render:72 → Rendering template: diamond
[DEBUG] 09:55:06.798 shell_unix.go:TerminalWidth:80 → terminal width: 120
[TRACE] 09:55:06.798 shell_unix.go:TerminalWidth() - 517.5µs
[TRACE] 09:55:06.798 shell.go:Shell() - 44ns
[TRACE] 09:55:06.798 shell.go:Shell() - 31ns
[TRACE] 09:55:06.798 shell.go:Shell() - 32ns
[TRACE] 09:55:06.798 shell.go:Shell() - 31ns
[TRACE] 09:55:06.798 shell.go:Flags() - 110ns
[DEBUG] 09:55:06.798 properties.go:GetString:28 → {{ .Code }}
[TRACE] 09:55:06.798 shell.go:Pwd() - 64ns
[TRACE] 09:55:06.798 shell.go:GOOS() - 46ns
[DEBUG] 09:55:06.798 segment.go:SetEnabled:557 → Segment: Status
[TRACE] 09:55:06.798 shell.go:StatusCodes() - 41ns
[DEBUG] 09:55:06.798 text.go:Render:72 → Rendering template: {{ .Code }}
[TRACE] 09:55:06.798 shell.go:Flags() - 140ns
[TRACE] 09:55:06.798 shell.go:Pwd() - 100ns
[TRACE] 09:55:06.798 shell.go:GOOS() - 46ns
[DEBUG] 09:55:06.798 segment.go:SetEnabled:557 → Segment: Text
[TRACE] 09:55:06.798 shell.go:TemplateCache() - 139ns
[TRACE] 09:55:06.798 shell.go:TemplateCache() - 75ns
[DEBUG] 09:55:06.798 properties.go:GetBool:22 → always_enabled: true
[TRACE] 09:55:06.798 shell.go:TemplateCache() - 40ns
[DEBUG] 09:55:06.798 text.go:Render:72 → Rendering template: 
[DEBUG] 09:55:06.798 text.go:Render:72 → Rendering template: ╰─
[DEBUG] 09:55:06.798 shell.go:Getenv:326 → WezTerm
[TRACE] 09:55:06.798 shell.go:Getenv(TERM_PROGRAM) - 2.047µs
[TRACE] 09:55:06.798 shell.go:Shell() - 35ns
[DEBUG] 09:55:06.798 text.go:Render:72 → Rendering template: plain
[DEBUG] 09:55:06.798 text.go:Render:72 → Rendering template: {{ if gt .Code 0 }}#ef5350{{ end }}
[TRACE] 09:55:06.798 shell.go:TemplateCache() - 43ns
[DEBUG] 09:55:06.798 text.go:Render:72 → Rendering template: plain
[TRACE] 09:55:06.798 shell.go:Shell() - 34ns
[TRACE] 09:55:06.798 shell.go:Shell() - 32ns
[TRACE] 09:55:06.798 shell.go:Shell() - 16ns
[TRACE] 09:55:06.798 shell.go:Shell() - 17ns
[DEBUG] 09:55:06.798 shell.go:Getenv:326 → NO DATA
[TRACE] 09:55:06.798 shell.go:Getenv(OMP_CACHE_DIR) - 1.711µs
[DEBUG] 09:55:06.798 shell.go:Getenv:326 → NO DATA
[TRACE] 09:55:06.798 shell.go:Getenv(XDG_CACHE_HOME) - 1.431µs
[TRACE] 09:55:06.798 shell_unix.go:CachePath() - 11.395µs
[TRACE] 09:55:06.798 shell.go:Flags() - 31ns