JanDeDobbeleer / oh-my-posh

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

(FISH on WSL) Last character of right aligned prompt is invisible #4153

Closed NoahMDMi closed 1 year ago

NoahMDMi commented 1 year ago

Code of Conduct

What happened?

I have an existing oh-my-posh theme that I use on Windows, but today I was setting up my WSL terminal to also use that theme, and noticed it was dropping off the last character of the right-aligned prompt (not an rprompt). I am using Windows Terminal.

Additionally, I did some basic testing and found:

In PowerShell, bash, and zsh, I didn't see this behavior.

FISH: image

PWSH: image

ZSH: image

BASH: image

Theme

A theme inspired by bubbles, but with heavy modifications made by myself.

{
  "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
  "final_space": false,
  "palette": {
    "background": "#2e2e2e"
  },
  "shell_integration": true,
  "blocks": [
    {
      "alignment": "left",
      "type": "prompt",
      "segments": [
        {
          "type": "time",
          "style": "diamond",
          "background": "p:background",
          "foreground": "#41d6ff",
          "leading_diamond": "\ue0b6",
          "trailing_diamond": "\ue0b4 ",
          "template": "<b>{{ .CurrentDate | date .Format | trim }}</b>",
          "properties": {
            "time_format": "Monday, January 2"
          }
        },
        {
          "type": "time",
          "style": "diamond",
          "background": "p:background",
          "foreground": "#ffffff",
          "leading_diamond": "\ue0b6",
          "trailing_diamond": "\ue0b4 ",
          "template": "{{ .CurrentDate | date .Format | trim }}",
          "properties": {
            "time_format": "3:04 PM"
          }
        },
        {
          "type": "connection",
          "style": "diamond",
          "background": "p:background",
          "leading_diamond": "\ue0b6",
          "trailing_diamond": "\ue0b4 ",
          "template": "{{ if eq .Type \"wifi\"}}\uf1eb {{ .SSID }}{{ else if eq .Type \"ethernet\"}}\ueba9{{ end }}",
          "foreground_templates": [
            "{{ if eq .Type \"wifi\"}}#88fba9{{ end }}",
            "{{ if eq .Type \"ethernet\" }}#00ff00{{ end }}"
          ]
        },
        {
          "type": "os",
          "background": "p:background",
          "foreground": "#fff",
          "leading_diamond": "\ue0b6",
          "trailing_diamond": "\ue0b4 ",
          "foreground_templates": [
            "{{if contains \"\uF31b\" .Icon}}#d88c5d{{end}}"
          ],
          "style": "diamond",
          "template": "{{ if .WSL }}{{ .Icon }} WSL{{ end }}"
        }
      ]
    },
    {
      "alignment": "right",
      "segments": [
        {
          "background": "p:background",
          "foreground": "#7FD5EA",
          "leading_diamond": "\ue0b6",
          "properties": {
            "fetch_version": false
          },
          "style": "diamond",
          "template": "\ufcd1{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}",
          "trailing_diamond": "\ue0b4 ",
          "type": "go"
        },
        {
          "background": "p:background",
          "foreground": "#42E66C",
          "leading_diamond": "\ue0b6",
          "properties": {
            "fetch_version": true
          },
          "style": "diamond",
          "template": "\ue718 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }}",
          "trailing_diamond": "\ue0b4 ",
          "type": "node"
        },
        {
          "background": "p:background",
          "foreground": "#E64747",
          "leading_diamond": "\ue0b6",
          "properties": {
            "fetch_version": false
          },
          "style": "diamond",
          "template": "\ue791{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}",
          "trailing_diamond": "\ue0b4 ",
          "type": "ruby"
        },
        {
          "background": "p:background",
          "foreground": "#E64747",
          "leading_diamond": "\ue0b6",
          "properties": {
            "fetch_version": false
          },
          "style": "diamond",
          "template": "\ue738{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}",
          "trailing_diamond": "\ue0b4 ",
          "type": "java"
        },
        {
          "background": "p:background",
          "foreground": "#9B6BDF",
          "leading_diamond": "\ue0b6",
          "properties": {
            "fetch_version": false
          },
          "style": "diamond",
          "template": "\ue624{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}",
          "trailing_diamond": "\ue0b4 ",
          "type": "julia"
        },
        {
          "background": "p:background",
          "foreground": "#ffff00",
          "leading_diamond": "\ue0b6",
          "properties": {
            "fetch_version": true,
            "display_mode": "context"
          },
          "style": "diamond",
          "template": "{{ if .Venv }}{{ else }}\ue73c {{ .Full }}{{ end }}",
          "trailing_diamond": "\ue0b4 ",
          "type": "python"
        },
        {
          "background": "p:background",
          "foreground": "#9B6BDF",
          "foreground_templates": [
            "{{if eq \"Charging\" .State.String}}#40c4ff{{end}}",
            "{{if eq \"Discharging\" .State.String}}#ff5722{{end}}",
            "{{if eq \"Full\" .State.String}}#4caf50{{end}}"
          ],
          "leading_diamond": "\ue0b6",
          "properties": {
            "charged_icon": "\u25cf ",
            "charging_icon": "\u21e1 ",
            "discharging_icon": "\u21e3 "
          },
          "style": "diamond",
          "template": "{{ if not .Error }}{{ if ne \"Full\" .State.String }}{{ .Icon }}{{ .Percentage }}{{ end }}{{ end }}{{ .Error }}",
          "trailing_diamond": "\ue0b4 ",
          "type": "battery"
        },
        {
          "type": "git",
          "background": "p:background",
          "foreground": "#43CCEA",
          "leading_diamond": "\ue0b6",
          "properties": {
            "branch_max_length": 25,
            "truncate_symbol": "...",
            "branch_icon": "",
            "fetch_status": true,
            "fetch_upstream_icon": true
          },
          "style": "diamond",
          "template": "\ue725 {{ path .HEAD .Segments.Path.Location }}",
          "trailing_diamond": "\ue0b4 "
        },
        {
          "background": "p:background",
          "foreground": "#b556fe",
          "leading_diamond": "\ue0b6",
          "properties": {
            "style": "folder"
          },
          "style": "diamond",
          "template": "{{ if .WSL }}\ue5ff {{ path .Path .Location }}{{ else }}{{ if .Segments.Git.UpstreamIcon }}{{ .Segments.Git.UpstreamIcon }}{{ url .Path .Segments.Git.UpstreamURL }}{{ else }}\ue5ff {{ path .Path .Location }}{{ end }}{{ end }}",
          "trailing_diamond": "\ue0b4",
          "type": "path"
        }
      ],
      "type": "prompt"
    },
    {
      "alignment": "left",
      "newline": true,
      "segments": [
        {
          "type": "executiontime",
          "style": "diamond",
          "foreground": "#da9eff",
          "background": "p:background",
          "template": "\uf43a {{ .FormattedMs }}",
          "leading_diamond": "\ue0b6",
          "trailing_diamond": "\ue0b4 ",
          "properties": {
            "threshold": 100,
            "style": "round"
          }
        },
        {
          "background": "p:background",
          "foreground": "#ffff00",
          "leading_diamond": "\ue0b6",
          "properties": {
            "fetch_version": false
          },
          "style": "diamond",
          "template": "\ue235 {{ if .Venv }}{{ .Venv }}{{ else }}{{ end }}",
          "trailing_diamond": "\ue0b4 ",
          "type": "python"
        },
        {
          "type": "session",
          "style": "diamond",
          "background": "p:background",
          "template": "{{ if .SSHSession }}\ueba9{{ .UserName }}@{{ .HostName }}{{ end }}",
          "leading_diamond": "\ue0b6",
          "trailing_diamond": "\ue0b4 "
        },
        {
          "type": "shell",
          "style": "diamond",
          "trailing_diamond": "\ue0b4 ",
          "leading_diamond": "\ue0b6",
          "background": "p:background",
          "template": "{{if and (ne .Name \"pwsh\") (ne .Name \"\")}}{{ .Name }}{{end}}",
          "properties": {
            "mapped_shell_names": {
              "fish": "\udb80\ude3a"
            }
          },
          "foreground": "#FFF"
        },
        {
          "type": "status",
          "style": "diamond",
          "background": "p:background",
          "template": "<b>-></b>",
          "foreground_templates": [
            "{{if gt .Code 0}}#ff0000{{else}}#ffffff{{end}}"
          ],
          "leading_diamond": "\ue0b6",
          "trailing_diamond": "\ue0b4 ",
          "properties": {
            "always_enabled": true
          }
        }
      ],
      "type": "prompt"
    }
  ],
  "transient_prompt": {
    "template": "<#2e2e2e>\ue0b6</><#fff,#2e2e2e><b>-></b></><#2e2e2e>\ue0b4</> ",
    "type": "session"
  },
  "version": 2
}

What OS are you seeing the problem on?

Windows, Linux

Which shell are you using?

fish

Log output

Version: 18.3.3

Shell: fish (3.6.1)

Prompt:

Friday, August 11 1:28 PM  WSL                                                                          GitHub
󰈺 ->

Segments:

ConsoleTitle(false)                        -   0 ms
Time(true)                                 -   1 ms
Time(true)                                 -   1 ms
Connection(false)                          -   1 ms
Os(true)                                   -   1 ms
Go(false)                                  -   5 ms
Node(false)                                -  10 ms
Ruby(false)                                -   4 ms
Java(false)                                -  21 ms
Julia(false)                               -   3 ms
Python(false)                              - 124 ms
Battery(false)                             -   0 ms
Git(false)                                 -  75 ms
Path(true)                                 -   2 ms
Executiontime(false)                       -   0 ms
Python(false)                              -   6 ms
Session(false)                             -   0 ms
Shell(true)                                -   0 ms
Status(true)                               -   0 ms

Run duration: 147.310888ms

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

Config path: /mnt/c/Users/NoahBlum/Documents/PowerShell/Profile/work.omp.json

Logs:

[DEBUG] 13:28:29.903 shell.go:Getenv:389 → NO DATA
[TRACE] 13:28:29.903 shell.go:Getenv(TERM_PROGRAM) - 15.458µs
[DEBUG] 13:28:29.903 shell.go:Getenv:389 → NO DATA
[TRACE] 13:28:29.903 shell.go:Getenv(XDG_CACHE_HOME) - 2.05µs
[TRACE] 13:28:29.903 shell_unix.go:CachePath() - 11µs
[DEBUG] 13:28:29.904 shell.go:Getenv:389 → /mnt/c/Users/NoahBlum/Documents/PowerShell/Profile/work.omp.json
[TRACE] 13:28:29.904 shell.go:Getenv(POSH_THEME) - 4.922µs
[DEBUG] 13:28:29.904 shell_unix.go:Platform:77 → ubuntu
[TRACE] 13:28:29.904 shell.go:resolveConfigPath() - 18.433µs
[TRACE] 13:28:29.904 shell.go:Init() - 441.318µs
[TRACE] 13:28:29.904 shell.go:Flags() - 51ns
[TRACE] 13:28:29.912 config.go:loadConfig() - 8.599285ms
[TRACE] 13:28:29.912 shell.go:Flags() - 199ns
[DEBUG] 13:28:29.912 shell.go:Shell:629 → no shell name provided in flags, trying to detect it
[DEBUG] 13:28:29.913 shell.go:Shell:637 → process name: fish
[TRACE] 13:28:29.913 shell.go:Shell() - 455.27µs
[DEBUG] 13:28:29.913 shell.go:Getenv:389 → NO DATA
[TRACE] 13:28:29.913 shell.go:Getenv(OMP_CACHE_DISABLED) - 2.558µs
[TRACE] 13:28:29.913 shell.go:Shell() - 70ns
[DEBUG] 13:28:29.913 shell.go:Getenv:389 → 3.6.1
[TRACE] 13:28:29.913 shell.go:Getenv(POSH_SHELL_VERSION) - 3.066µs
[DEBUG] 13:28:29.913 debug.go:PrintDebug:22 → Segment: Title
[TRACE] 13:28:29.913 shell.go:StatusCodes() - 198ns
[TRACE] 13:28:29.913 shell.go:Flags() - 46ns
[DEBUG] 13:28:29.913 shell.go:Getenv:389 → NO DATA
[TRACE] 13:28:29.913 shell.go:Getenv(POSH_CURSOR_LINE) - 10.871µs
[DEBUG] 13:28:29.913 shell.go:Getenv:389 → NO DATA
[TRACE] 13:28:29.913 shell.go:Getenv(POSH_CURSOR_COLUMN) - 1.606µs
[TRACE] 13:28:29.913 shell.go:Flags() - 46ns
[TRACE] 13:28:29.913 shell.go:Flags() - 22ns
[TRACE] 13:28:29.913 shell.go:Shell() - 45ns
[TRACE] 13:28:29.913 shell.go:Flags() - 136ns
[TRACE] 13:28:29.913 shell.go:Flags() - 122ns
[TRACE] 13:28:29.913 shell.go:Flags() - 246ns
[TRACE] 13:28:29.913 shell.go:Flags() - 394ns
[TRACE] 13:28:29.914 shell.go:GOOS() - 285ns
[DEBUG] 13:28:29.914 shell.go:Pwd:419 → /mnt/c/Users/NoahBlum/Documents/GitHub
[TRACE] 13:28:29.914 shell.go:Pwd() - 902.429µs
[TRACE] 13:28:29.914 shell.go:GOOS() - 52ns
[DEBUG] 13:28:29.914 segment.go:SetEnabled:494 → Segment: Os
[TRACE] 13:28:29.914 shell.go:GOOS() - 32ns
[DEBUG] 13:28:29.914 shell_unix.go:Platform:77 → ubuntu
[DEBUG] 13:28:29.914 properties.go:GetBool:22 → display_distro_name: false
[DEBUG] 13:28:29.914 properties.go:GetString:28 → 
[TRACE] 13:28:29.914 shell_unix.go:Root() - 570ns
[TRACE] 13:28:29.914 shell.go:Shell() - 99ns
[TRACE] 13:28:29.914 shell.go:StatusCodes() - 160ns
[DEBUG] 13:28:29.914 shell_unix.go:IsWsl:35 → true
[TRACE] 13:28:29.914 shell_unix.go:IsWsl() - 3.111µs
[TRACE] 13:28:29.914 shell.go:Pwd() - 746ns
[DEBUG] 13:28:29.914 shell.go:TemplateCache:810 → environment: [PWD=/mnt/c/Users/NoahBlum/Documents/GitHub omp_last_status_generation=4 WSL2_GUI_APPS_ENABLED=1 WT_PROFILE_ID={51855cb2-8cce-5362-8f54-464b92b32386} POSH_PROMPT_COUNT=3 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus SHLVL=4 POSH_PID=23860 HOMEBREW_PREFIX=/home/linuxbrew/.linuxbrew PULSE_SERVER=unix:/mnt/wslg/PulseServer LESSCLOSE=/usr/bin/lesspipe %s %s HOMEBREW_REPOSITORY=/home/linuxbrew/.linuxbrew/Homebrew CONDA_PROMPT_MODIFIER=false MANPATH=/home/linuxbrew/.linuxbrew/share/man: LESSOPEN=| /usr/bin/lesspipe %s LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36: HOME=/home/noahblum INFOPATH=/home/linuxbrew/.linuxbrew/share/info: WT_SESSION=8ee1bd15-fba5-4b0c-be3e-d98c449e7f70 HOMEBREW_CELLAR=/home/linuxbrew/.linuxbrew/Cellar SHELL=/usr/bin/fish TERM=xterm-256color WAYLAND_DISPLAY=wayland-0 LANG=C.UTF-8 POWERLINE_COMMAND=oh-my-posh XDG_RUNTIME_DIR=/run/user/1000/ PATH=/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/mnt/c/Program Files/Microsoft MPI/Bin/:/mnt/c/WINDOWS/system32:/mnt/c/WINDOWS:/mnt/c/WINDOWS/System32/Wbem:/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0/:/mnt/c/WINDOWS/System32/OpenSSH/:/mnt/c/Program Files (x86)/Microsoft SQL Server/110/Tools/Binn/:/mnt/c/Program Files/Microsoft SQL Server/110/Tools/Binn/:/mnt/c/Program Files/Microsoft SQL Server/110/DTS/Binn/:/mnt/c/Program Files/MATLAB/R2017a/bin:/mnt/c/Program Files/dotnet/:/mnt/c/Program Files (x86)/Microsoft SQL Server/90/Tools/binn/:/mnt/c/Program Files (x86)/Microsoft SQL Server/150/DTS/Binn/:/mnt/c/Program Files/Azure Data Studio/bin:/mnt/c/Program Files (x86)/Microsoft SQL Server/150/Tools/Binn/:/mnt/c/Program Files/Microsoft SQL Server/150/Tools/Binn/:/mnt/c/Program Files/Microsoft SQL Server/150/DTS/Binn/:/mnt/c/Program Files/Microsoft SQL Server/Client SDK/ODBC/170/Tools/Binn/:/mnt/c/ProgramData/chocolatey/bin:/mnt/c/Users/NoahBlum/AppData/Local/Programs/sqlite/:/mnt/c/Users/NoahBlum/AppData/Roaming/Python/Python310/Scripts:/mnt/c/Users/NoahBlum/AppData/Local/Programs/Git/cmd/:/mnt/c/Program Files/vcpkg/installed/x64-windows/tools/xalan-c:/mnt/c/Program Files/Vim/vim90:/mnt/c/Program Files/PowerShell/7/:/mnt/c/Users/NoahBlum/AppData/Local/Programs/GitHub CLI/:/mnt/c/Program Files/nodejs/:/mnt/c/Program Files/Docker/Docker/resources/bin:/mnt/c/Users/NoahBlum/.pyenv/pyenv-win/bin:/mnt/c/Users/NoahBlum/.pyenv/pyenv-win/shims:/mnt/c/Users/NoahBlum/.cargo/bin:/mnt/c/Users/NoahBlum/scoop/shims:/mnt/c/Users/NoahBlum/AppData/Local/Microsoft/WindowsApps:/mnt/c/Users/NoahBlum/AppData/Local/Programs/Microsoft VS Code/bin:/mnt/c/Users/NoahBlum/AppData/Local/JetBrains/PyCharm Community Edition 2022.3.2/bin:/mnt/c/Users/NoahBlum/AppData/Local/GitHubDesktop/bin:/mnt/c/users/noahblum/.local/bin:/mnt/c/Users/NoahBlum/AppData/Local/Programs/oh-my-posh/bin:/mnt/c/Users/NoahBlum/AppData/Local/Programs/Pytinerary:/mnt/c/Users/NoahBlum/Path:/mnt/c/Users/NoahBlum/AppData/Roaming/npm:/snap/bin USER=noahblum HOSTTYPE=x86_64 XDG_DATA_DIRS=/usr/local/share:/usr/share:/var/lib/snapd/desktop WSL_INTEROP=/run/WSL/17036_interop POSH_THEME=/mnt/c/Users/NoahBlum/Documents/PowerShell/Profile/work.omp.json OLDPWD=/mnt/c/Users/NoahBlum/Documents/GitHub omp_lastcommand=clear DISPLAY=:0 WSLENV=WT_SESSION::WT_PROFILE_ID POSH_SHELL_VERSION=3.6.1 LOGNAME=noahblum NAME=IRRN0IJ WSL_DISTRO_NAME=Ubuntu]
[TRACE] 13:28:29.914 shell.go:GOOS() - 64ns
[DEBUG] 13:28:29.914 segment.go:SetEnabled:494 → Segment: Time
[TRACE] 13:28:29.914 shell.go:Pwd() - 140ns
[TRACE] 13:28:29.914 shell.go:GOOS() - 38ns
[DEBUG] 13:28:29.914 properties.go:GetString:28 → 3:04 PM
[TRACE] 13:28:29.914 shell.go:GOOS() - 35ns
[TRACE] 13:28:29.914 shell.go:GOOS() - 22ns
[TRACE] 13:28:29.914 shell.go:GOOS() - 20ns
[TRACE] 13:28:29.914 shell.go:GOOS() - 20ns
[TRACE] 13:28:29.914 shell.go:GOOS() - 21ns
[TRACE] 13:28:29.914 shell.go:GOOS() - 19ns
[TRACE] 13:28:29.914 shell.go:GOOS() - 24ns
[TRACE] 13:28:29.914 shell.go:Pwd() - 245ns
[TRACE] 13:28:29.914 shell.go:GOOS() - 34ns
[DEBUG] 13:28:29.914 shell.go:User:540 → noahblum
[DEBUG] 13:28:29.914 segment.go:SetEnabled:494 → Segment: Connection
[TRACE] 13:28:29.914 shell.go:User() - 2.473µs
[DEBUG] 13:28:29.914 properties.go:GetString:28 → wifi|ethernet
[DEBUG] 13:28:29.914 shell.go:Host:552 → IRRN0IJ
[TRACE] 13:28:29.914 shell.go:Host() - 3.897µs
[TRACE] 13:28:29.914 shell.go:GOOS() - 28ns
[TRACE] 13:28:29.914 shell.go:Pwd() - 66ns
[TRACE] 13:28:29.914 shell.go:GOOS() - 22ns
[DEBUG] 13:28:29.914 shell_unix.go:Platform:77 → ubuntu
[DEBUG] 13:28:29.914 segment.go:SetEnabled:494 → Segment: Time
[DEBUG] 13:28:29.914 shell.go:Getenv:389 → 4
[DEBUG] 13:28:29.914 properties.go:GetString:28 → Monday, January 2
[TRACE] 13:28:29.914 shell.go:Getenv(SHLVL) - 2.09µs
[TRACE] 13:28:29.914 shell.go:TemplateCache() - 74.254µs
[TRACE] 13:28:29.914 shell.go:TemplateCache() - 1.415µs
[TRACE] 13:28:29.914 shell.go:TemplateCache() - 47.312µs
[TRACE] 13:28:29.915 shell.go:TemplateCache() - 304ns
[TRACE] 13:28:29.915 shell.go:Shell() - 137ns
[TRACE] 13:28:29.916 shell.go:TemplateCache() - 588ns
[TRACE] 13:28:29.916 shell.go:TemplateCache() - 961ns
[TRACE] 13:28:29.916 shell.go:Shell() - 62ns
[TRACE] 13:28:29.916 shell.go:Shell() - 103ns
[TRACE] 13:28:29.916 shell.go:TemplateCache() - 235ns
[TRACE] 13:28:29.916 shell.go:Shell() - 76ns
[TRACE] 13:28:29.916 shell.go:Shell() - 38ns
[TRACE] 13:28:29.916 shell.go:Shell() - 23ns
[TRACE] 13:28:29.916 shell.go:Flags() - 80ns
[TRACE] 13:28:29.916 shell.go:Pwd() - 117ns
[TRACE] 13:28:29.916 shell.go:GOOS() - 49ns
[DEBUG] 13:28:29.916 segment.go:SetEnabled:494 → Segment: Path
[TRACE] 13:28:29.916 shell.go:Flags() - 148ns
[TRACE] 13:28:29.916 shell.go:Pwd() - 42ns
[TRACE] 13:28:29.916 shell.go:Shell() - 46ns
[TRACE] 13:28:29.916 shell.go:Shell() - 33ns
[DEBUG] 13:28:29.916 shell.go:Getenv:389 → NO DATA
[TRACE] 13:28:29.916 shell.go:Getenv(JAVA_HOME) - 3.19µs
[TRACE] 13:28:29.916 shell.go:Pwd() - 112ns
[TRACE] 13:28:29.916 shell.go:GOOS() - 89ns
[TRACE] 13:28:29.916 shell.go:Flags() - 205ns
[DEBUG] 13:28:29.916 segment.go:SetEnabled:494 → Segment: Java
[DEBUG] 13:28:29.916 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] 13:28:29.916 shell.go:Pwd() - 149ns
[DEBUG] 13:28:29.916 properties.go:GetStringArray:52 → folders: []
[TRACE] 13:28:29.916 shell.go:GOOS() - 59ns
[DEBUG] 13:28:29.916 segment.go:SetEnabled:494 → Segment: Node
[DEBUG] 13:28:29.916 properties.go:GetString:28 → files
[DEBUG] 13:28:29.916 properties.go:GetString:28 → 
[TRACE] 13:28:29.916 shell.go:Pwd() - 32ns
[DEBUG] 13:28:29.916 properties.go:GetString:28 → 
[DEBUG] 13:28:29.916 properties.go:GetStringArray:52 → extensions: [*.js *.ts package.json .nvmrc pnpm-workspace.yaml .pnpmfile.cjs .npmrc .vue]
[TRACE] 13:28:29.916 shell.go:GOOS() - 67ns
[TRACE] 13:28:29.916 shell.go:Pwd() - 149ns
[DEBUG] 13:28:29.916 properties.go:GetStringArray:52 → folders: []
[DEBUG] 13:28:29.916 properties.go:GetString:28 → ~
[TRACE] 13:28:29.916 shell.go:GOOS() - 47ns
[DEBUG] 13:28:29.916 properties.go:GetBool:22 → home_enabled: false
[DEBUG] 13:28:29.916 segment.go:SetEnabled:494 → Segment: Ruby
[TRACE] 13:28:29.916 shell.go:Pwd() - 96ns
[DEBUG] 13:28:29.916 properties.go:GetStringArray:52 → extensions: [*.rb Rakefile Gemfile]
[DEBUG] 13:28:29.916 properties.go:GetString:28 → files
[DEBUG] 13:28:29.916 properties.go:GetStringArray:52 → folders: []
[TRACE] 13:28:29.916 shell.go:PathSeparator() - 58ns
[DEBUG] 13:28:29.916 properties.go:GetBool:22 → home_enabled: false
[TRACE] 13:28:29.916 shell.go:GOOS() - 48ns
[DEBUG] 13:28:29.916 properties.go:GetBool:22 → fetch_package_manager: false
[TRACE] 13:28:29.916 shell.go:Pwd() - 41ns
[TRACE] 13:28:29.916 shell.go:GOOS() - 24ns
[TRACE] 13:28:29.916 shell.go:Pwd() - 79ns
[DEBUG] 13:28:29.916 properties.go:GetString:28 → files
[TRACE] 13:28:29.916 shell.go:Pwd() - 44ns
[TRACE] 13:28:29.916 shell.go:Flags() - 130ns
[TRACE] 13:28:29.916 shell.go:GOOS() - 85ns
[TRACE] 13:28:29.916 shell.go:GOOS() - 37ns
[TRACE] 13:28:29.916 shell.go:Flags() - 120ns
[TRACE] 13:28:29.916 shell.go:Pwd() - 179ns
[TRACE] 13:28:29.916 shell.go:PathSeparator() - 36ns
[TRACE] 13:28:29.916 shell.go:PathSeparator() - 43ns
[TRACE] 13:28:29.916 shell.go:GOOS() - 34ns
[DEBUG] 13:28:29.916 segment.go:SetEnabled:494 → Segment: Go
[TRACE] 13:28:29.916 shell.go:GOOS() - 40ns
[TRACE] 13:28:29.916 shell.go:PathSeparator() - 23ns
[TRACE] 13:28:29.916 shell.go:GOOS() - 32ns
[TRACE] 13:28:29.916 shell.go:GOOS() - 28ns
[DEBUG] 13:28:29.916 properties.go:GetStringArray:52 → extensions: [*.go go.mod]
[DEBUG] 13:28:29.916 properties.go:GetString:28 → context
[TRACE] 13:28:29.916 shell.go:PathSeparator() - 26ns
[TRACE] 13:28:29.916 shell.go:GOOS() - 52ns
[TRACE] 13:28:29.916 shell.go:GOOS() - 33ns
[TRACE] 13:28:29.916 shell.go:Pwd() - 144ns
[DEBUG] 13:28:29.916 properties.go:GetStringArray:52 → folders: []
[TRACE] 13:28:29.916 shell.go:GOOS() - 58ns
[DEBUG] 13:28:29.916 segment.go:SetEnabled:494 → Segment: Python
[DEBUG] 13:28:29.916 properties.go:GetBool:22 → home_enabled: false
[TRACE] 13:28:29.916 shell.go:Pwd() - 76ns
[DEBUG] 13:28:29.916 properties.go:GetStringArray:52 → extensions: [*.py *.ipynb pyproject.toml venv.bak]
[DEBUG] 13:28:29.916 properties.go:GetString:28 → files
[TRACE] 13:28:29.916 shell.go:PathSeparator() - 75ns
[TRACE] 13:28:29.916 shell.go:Pwd() - 67ns
[DEBUG] 13:28:29.916 properties.go:GetString:28 → folder
[TRACE] 13:28:29.916 shell.go:GOOS() - 48ns
[TRACE] 13:28:29.916 shell.go:GOOS() - 27ns
[TRACE] 13:28:29.916 shell.go:GOOS() - 28ns
[TRACE] 13:28:29.916 shell.go:GOOS() - 24ns
[DEBUG] 13:28:29.916 properties.go:GetStringArray:52 → folders: [.venv venv virtualenv env venv-win pyenv-win]
[TRACE] 13:28:29.916 shell.go:GOOS() - 28ns
[DEBUG] 13:28:29.916 properties.go:GetBool:22 → home_enabled: false
[TRACE] 13:28:29.916 shell.go:PathSeparator() - 26ns
[DEBUG] 13:28:29.916 properties.go:GetString:28 → NO DATA
[TRACE] 13:28:29.916 shell.go:Pwd() - 157ns
[TRACE] 13:28:29.916 shell.go:PathSeparator() - 29ns
[DEBUG] 13:28:29.916 properties.go:GetString:28 → /
[TRACE] 13:28:29.916 shell.go:Flags() - 174ns
[DEBUG] 13:28:29.916 properties.go:GetBool:22 → fetch_virtual_env: true
[TRACE] 13:28:29.916 shell.go:Pwd() - 100ns
[DEBUG] 13:28:29.916 shell_unix.go:IsWsl:35 → true
[TRACE] 13:28:29.916 shell_unix.go:IsWsl() - 3.891µs
[TRACE] 13:28:29.916 shell.go:Pwd() - 154ns
[TRACE] 13:28:29.916 shell.go:GOOS() - 62ns
[DEBUG] 13:28:29.916 segment.go:SetEnabled:494 → Segment: Battery
[DEBUG] 13:28:29.916 shell_unix.go:IsWsl:35 → true
[TRACE] 13:28:29.916 shell_unix.go:IsWsl() - 4.47µs
[DEBUG] 13:28:29.916 shell_unix.go:IsWsl:35 → true
[TRACE] 13:28:29.916 shell.go:Flags() - 136ns
[TRACE] 13:28:29.916 shell_unix.go:IsWsl() - 2.803µs
[TRACE] 13:28:29.916 shell.go:Pwd() - 400ns
[TRACE] 13:28:29.916 shell.go:GOOS() - 50ns
[DEBUG] 13:28:29.916 segment.go:SetEnabled:494 → Segment: Git
[DEBUG] 13:28:29.916 shell_unix.go:IsWsl:35 → true
[TRACE] 13:28:29.916 shell_unix.go:IsWsl() - 2.99µs
[DEBUG] 13:28:29.916 shell.go:FileContent:514 ↓
    5.15.90.1-microsoft-standard-WSL2

[TRACE] 13:28:29.916 shell.go:FileContent(/proc/sys/kernel/osrelease) - 38.613µs
[DEBUG] 13:28:29.916 shell.go:FileContent:514 ↓
    5.15.90.1-microsoft-standard-WSL2

[TRACE] 13:28:29.916 shell_unix.go:IsWsl2() - 50.493µs
[TRACE] 13:28:29.916 shell.go:FileContent(/proc/sys/kernel/osrelease) - 20.101µs
[TRACE] 13:28:29.916 shell_unix.go:IsWsl2() - 28.911µs
[TRACE] 13:28:29.916 shell.go:Pwd() - 58ns
[TRACE] 13:28:29.916 shell.go:Flags() - 177ns
[TRACE] 13:28:29.916 shell.go:Pwd() - 83ns
[TRACE] 13:28:29.916 shell.go:GOOS() - 44ns
[DEBUG] 13:28:29.916 segment.go:SetEnabled:494 → Segment: Julia
[DEBUG] 13:28:29.916 properties.go:GetStringArray:52 → extensions: [*.jl]
[DEBUG] 13:28:29.916 properties.go:GetStringArray:52 → folders: []
[DEBUG] 13:28:29.916 properties.go:GetBool:22 → home_enabled: false
[TRACE] 13:28:29.916 shell.go:Pwd() - 63ns
[DEBUG] 13:28:29.916 properties.go:GetString:28 → files
[TRACE] 13:28:29.916 shell.go:Pwd() - 46ns
[DEBUG] 13:28:29.917 shell.go:HasFiles:441 → false
[TRACE] 13:28:29.917 shell.go:HasFiles(pom.xml) - 663.55µs
[TRACE] 13:28:29.917 shell.go:Pwd() - 123ns
[TRACE] 13:28:29.917 shell_windows_nix.go:BatteryState() - 456.481µs
[DEBUG] 13:28:29.917 properties.go:GetString:28 → ●
[TRACE] 13:28:29.917 shell.go:TemplateCache() - 207ns
[DEBUG] 13:28:29.917 shell.go:RunCommand:570 → C:/Users/NoahBlum/Documents/GitHub
[DEBUG] 13:28:29.917 shell.go:HasFiles:441 → false
[TRACE] 13:28:29.917 shell.go:HasFiles(build.gradle.kts) - 645.668µs
[TRACE] 13:28:29.917 shell.go:Pwd() - 204ns
[DEBUG] 13:28:29.918 shell.go:RunCommand:570 → C:/Users/NoahBlum/Documents/GitHub
[TRACE] 13:28:29.918 shell.go:RunCommand(wslpath -m /mnt/c/Users/NoahBlum/Documents/GitHub) - 1.397255ms
[TRACE] 13:28:29.918 shell.go:GOOS() - 56ns
[DEBUG] 13:28:29.918 shell.go:HasFiles:441 → false
[TRACE] 13:28:29.918 shell.go:HasFiles(build.sbt) - 432.587µs
[TRACE] 13:28:29.918 shell.go:Pwd() - 101ns
[TRACE] 13:28:29.918 shell.go:RunCommand(wslpath -m /mnt/c/Users/NoahBlum/Documents/GitHub) - 942.964µs
[TRACE] 13:28:29.918 shell.go:StackCount() - 162ns
[TRACE] 13:28:29.918 shell_unix.go:DirIsWritable(/mnt/c/Users/NoahBlum/Documents/GitHub) - 7.473µs
[TRACE] 13:28:29.918 shell.go:TemplateCache() - 378ns
[DEBUG] 13:28:29.919 shell.go:HasFiles:441 → false
[TRACE] 13:28:29.919 shell.go:HasFiles(.java-version) - 617.775µs
[TRACE] 13:28:29.919 shell.go:Pwd() - 82ns
[DEBUG] 13:28:29.919 shell.go:HasFiles:441 → false
[TRACE] 13:28:29.919 shell.go:HasFiles(.deps.edn) - 538.181µs
[TRACE] 13:28:29.919 shell.go:Pwd() - 111ns
[DEBUG] 13:28:29.920 shell.go:HasFiles:441 → false
[TRACE] 13:28:29.920 shell.go:HasFiles(project.clj) - 511.594µs
[TRACE] 13:28:29.920 shell.go:Pwd() - 85ns
[DEBUG] 13:28:29.920 shell.go:HasFiles:441 → false
[TRACE] 13:28:29.920 shell.go:HasFiles(*.rb) - 3.695087ms
[TRACE] 13:28:29.920 shell.go:Pwd() - 66ns
[DEBUG] 13:28:29.920 shell.go:HasFiles:441 → false
[TRACE] 13:28:29.920 shell.go:HasFiles(*.js) - 3.875093ms
[TRACE] 13:28:29.920 shell.go:Pwd() - 88ns
[DEBUG] 13:28:29.920 shell.go:HasFiles:441 → false
[TRACE] 13:28:29.920 shell.go:HasFiles(*.jl) - 3.672352ms
[DEBUG] 13:28:29.920 shell.go:HasFiles:441 → false
[TRACE] 13:28:29.920 shell.go:HasFiles(build.boot) - 572.373µs
[TRACE] 13:28:29.920 shell.go:Pwd() - 66ns
[DEBUG] 13:28:29.920 shell.go:HasFiles:441 → false
[TRACE] 13:28:29.920 shell.go:HasFiles(Rakefile) - 512.86µs
[TRACE] 13:28:29.920 shell.go:Pwd() - 123ns
[DEBUG] 13:28:29.921 shell.go:HasFiles:441 → false
[TRACE] 13:28:29.921 shell.go:HasFiles(*.go) - 4.461843ms
[TRACE] 13:28:29.921 shell.go:Pwd() - 72ns
[DEBUG] 13:28:29.921 shell.go:HasFiles:441 → false
[TRACE] 13:28:29.921 shell.go:HasFiles(Gemfile) - 404.604µs
[DEBUG] 13:28:29.921 shell.go:HasFiles:441 → false
[TRACE] 13:28:29.921 shell.go:HasFiles(go.mod) - 491.634µs
[DEBUG] 13:28:29.923 shell.go:HasFiles:441 → false
[TRACE] 13:28:29.923 shell.go:HasFiles(*.ts) - 3.087531ms
[TRACE] 13:28:29.923 shell.go:Pwd() - 293ns
[DEBUG] 13:28:29.923 shell.go:HasFiles:441 → false
[TRACE] 13:28:29.923 shell.go:HasFiles(*.java) - 3.036946ms
[TRACE] 13:28:29.923 shell.go:Pwd() - 115ns
[DEBUG] 13:28:29.924 shell.go:HasFiles:441 → false
[TRACE] 13:28:29.924 shell.go:HasFiles(package.json) - 678.864µs
[TRACE] 13:28:29.924 shell.go:Pwd() - 66ns
[DEBUG] 13:28:29.924 shell.go:HasFiles:441 → false
[TRACE] 13:28:29.924 shell.go:HasFiles(.nvmrc) - 501.883µs
[TRACE] 13:28:29.924 shell.go:Pwd() - 73ns
[DEBUG] 13:28:29.925 shell.go:HasFiles:441 → false
[TRACE] 13:28:29.925 shell.go:HasFiles(pnpm-workspace.yaml) - 674.744µs
[TRACE] 13:28:29.925 shell.go:Pwd() - 83ns
[DEBUG] 13:28:29.925 shell.go:HasFiles:441 → false
[TRACE] 13:28:29.925 shell.go:HasFiles(.pnpmfile.cjs) - 423.746µs
[TRACE] 13:28:29.925 shell.go:Pwd() - 70ns
[DEBUG] 13:28:29.926 shell.go:HasFiles:441 → false
[TRACE] 13:28:29.926 shell.go:HasFiles(.npmrc) - 493.324µs
[TRACE] 13:28:29.926 shell.go:Pwd() - 72ns
[DEBUG] 13:28:29.926 shell.go:HasFiles:441 → false
[TRACE] 13:28:29.926 shell.go:HasFiles(*.class) - 2.79404ms
[TRACE] 13:28:29.926 shell.go:Pwd() - 117ns
[DEBUG] 13:28:29.926 shell.go:HasFiles:441 → false
[TRACE] 13:28:29.926 shell.go:HasFiles(.vue) - 438.583µs
[DEBUG] 13:28:29.929 shell.go:HasFiles:441 → false
[TRACE] 13:28:29.929 shell.go:HasFiles(*.gradle) - 2.705486ms
[TRACE] 13:28:29.929 shell.go:Pwd() - 140ns
[DEBUG] 13:28:29.932 shell.go:HasFiles:441 → false
[TRACE] 13:28:29.932 shell.go:HasFiles(*.jar) - 3.427726ms
[TRACE] 13:28:29.932 shell.go:Pwd() - 186ns
[DEBUG] 13:28:29.934 shell.go:HasFiles:441 → false
[TRACE] 13:28:29.934 shell.go:HasFiles(*.clj) - 2.304918ms
[TRACE] 13:28:29.934 shell.go:Pwd() - 269ns
[DEBUG] 13:28:29.938 shell.go:HasFiles:441 → false
[TRACE] 13:28:29.938 shell.go:HasFiles(*.cljc) - 3.219661ms
[DEBUG] 13:28:29.990 shell.go:CommandPath:591 → /mnt/c/Users/NoahBlum/AppData/Local/Programs/Git/cmd/git.exe
[TRACE] 13:28:29.990 shell.go:CommandPath(git.exe) - 72.263438ms
[TRACE] 13:28:29.990 shell.go:HasCommand(git.exe) - 72.267849ms
[TRACE] 13:28:29.990 shell.go:Pwd() - 404ns
[ERROR] 13:28:29.992 shell.go:HasParentFilePath:725 → stat .git: no such file or directory
[TRACE] 13:28:29.992 shell.go:HasParentFilePath(.git) - 2.152509ms
[DEBUG] 13:28:29.992 properties.go:GetBool:22 → fetch_bare_info: false
[DEBUG] 13:28:30.025 shell.go:CommandPath:591 → /mnt/c/Users/NoahBlum/.pyenv/pyenv-win/shims/python
[TRACE] 13:28:30.025 shell.go:CommandPath(python) - 108.579895ms
[DEBUG] 13:28:30.029 shell.go:HasFilesInDir:455 → false
[TRACE] 13:28:30.029 shell.go:HasFilesInDir(pyvenv.cfg) - 4.136466ms
[DEBUG] 13:28:30.032 shell.go:HasFilesInDir:455 → false
[TRACE] 13:28:30.032 shell.go:HasFilesInDir(pyvenv.cfg) - 2.553592ms
[DEBUG] 13:28:30.032 shell.go:Getenv:389 → NO DATA
[TRACE] 13:28:30.032 shell.go:Getenv(VIRTUAL_ENV) - 4.209µs
[DEBUG] 13:28:30.032 shell.go:Getenv:389 → NO DATA
[TRACE] 13:28:30.032 shell.go:Getenv(CONDA_ENV_PATH) - 1.462µs
[DEBUG] 13:28:30.032 shell.go:Getenv:389 → NO DATA
[TRACE] 13:28:30.032 shell.go:Getenv(CONDA_DEFAULT_ENV) - 1.427µs
[TRACE] 13:28:30.032 shell.go:Pwd() - 179ns
[DEBUG] 13:28:30.034 shell.go:HasFiles:441 → false
[TRACE] 13:28:30.034 shell.go:HasFiles(*.py) - 2.370874ms
[TRACE] 13:28:30.034 shell.go:Pwd() - 112ns
[DEBUG] 13:28:30.037 shell.go:HasFiles:441 → false
[TRACE] 13:28:30.037 shell.go:HasFiles(*.ipynb) - 2.73ms
[TRACE] 13:28:30.037 shell.go:Pwd() - 84ns
[DEBUG] 13:28:30.037 shell.go:HasFiles:441 → false
[TRACE] 13:28:30.037 shell.go:HasFiles(pyproject.toml) - 606.77µs
[TRACE] 13:28:30.037 shell.go:Pwd() - 194ns
[DEBUG] 13:28:30.038 shell.go:HasFiles:441 → false
[TRACE] 13:28:30.038 shell.go:HasFiles(venv.bak) - 662.384µs
[DEBUG] 13:28:30.039 shell.go:HasFolder:484 → false
[TRACE] 13:28:30.039 shell.go:HasFolder(.venv) - 549.341µs
[DEBUG] 13:28:30.039 shell.go:HasFolder:484 → false
[TRACE] 13:28:30.039 shell.go:HasFolder(venv) - 512.849µs
[DEBUG] 13:28:30.040 shell.go:HasFolder:484 → false
[TRACE] 13:28:30.040 shell.go:HasFolder(virtualenv) - 454.891µs
[DEBUG] 13:28:30.040 shell.go:HasFolder:484 → false
[TRACE] 13:28:30.040 shell.go:HasFolder(env) - 458.596µs
[DEBUG] 13:28:30.041 shell.go:HasFolder:484 → false
[TRACE] 13:28:30.041 shell.go:HasFolder(venv-win) - 580.161µs
[DEBUG] 13:28:30.041 shell.go:HasFolder:484 → false
[TRACE] 13:28:30.041 shell.go:HasFolder(pyenv-win) - 431.583µs
[TRACE] 13:28:30.041 shell.go:TemplateCache() - 644ns
[TRACE] 13:28:30.041 shell.go:TemplateCache() - 159ns
[TRACE] 13:28:30.041 shell.go:Shell() - 439ns
[TRACE] 13:28:30.042 shell.go:TemplateCache() - 405ns
[TRACE] 13:28:30.042 shell.go:Shell() - 182ns
[DEBUG] 13:28:30.042 shell_unix.go:TerminalWidth:70 → terminal width: 120
[TRACE] 13:28:30.042 shell_unix.go:TerminalWidth() - 774.285µs
[TRACE] 13:28:30.042 shell.go:Shell() - 93ns
[TRACE] 13:28:30.042 shell.go:Shell() - 77ns
[TRACE] 13:28:30.042 shell.go:Shell() - 40ns
[TRACE] 13:28:30.042 shell.go:Flags() - 85ns
[DEBUG] 13:28:30.043 properties.go:GetString:28 → {{ .Code }}
[TRACE] 13:28:30.043 shell.go:Pwd() - 374ns
[TRACE] 13:28:30.043 shell.go:Flags() - 144ns
[TRACE] 13:28:30.043 shell.go:GOOS() - 47ns
[DEBUG] 13:28:30.043 segment.go:SetEnabled:494 → Segment: Status
[TRACE] 13:28:30.043 shell.go:StatusCodes() - 51ns
[DEBUG] 13:28:30.043 properties.go:GetString:28 → environment
[TRACE] 13:28:30.043 shell.go:Pwd() - 150ns
[TRACE] 13:28:30.043 shell.go:GOOS() - 67ns
[DEBUG] 13:28:30.043 segment.go:SetEnabled:494 → Segment: Python
[DEBUG] 13:28:30.043 properties.go:GetStringArray:52 → extensions: [*.py *.ipynb pyproject.toml venv.bak]
[DEBUG] 13:28:30.043 properties.go:GetStringArray:52 → folders: [.venv venv virtualenv env venv-win pyenv-win]
[DEBUG] 13:28:30.043 properties.go:GetBool:22 → home_enabled: false
[TRACE] 13:28:30.043 shell.go:Pwd() - 50ns
[TRACE] 13:28:30.043 shell.go:Flags() - 238ns
[DEBUG] 13:28:30.043 properties.go:GetBool:22 → fetch_virtual_env: true
[DEBUG] 13:28:30.043 shell.go:CommandPath:585 → /mnt/c/Users/NoahBlum/.pyenv/pyenv-win/shims/python
[TRACE] 13:28:30.043 shell.go:Pwd() - 155ns
[TRACE] 13:28:30.043 shell.go:GOOS() - 74ns
[TRACE] 13:28:30.043 shell.go:CommandPath(python) - 7.912µs
[DEBUG] 13:28:30.043 segment.go:SetEnabled:494 → Segment: Executiontime
[TRACE] 13:28:30.043 shell.go:Flags() - 216ns
[DEBUG] 13:28:30.043 properties.go:GetBool:22 → always_enabled: false
[TRACE] 13:28:30.043 shell.go:ExecutionTime() - 65ns
[DEBUG] 13:28:30.043 properties.go:GetFloat64:34 → threshold: 100.000000
[TRACE] 13:28:30.043 shell.go:Pwd() - 130ns
[TRACE] 13:28:30.043 shell.go:GOOS() - 46ns
[DEBUG] 13:28:30.043 segment.go:SetEnabled:494 → Segment: Session
[DEBUG] 13:28:30.043 shell.go:Getenv:389 → NO DATA
[TRACE] 13:28:30.043 shell.go:Getenv(SSH_CONNECTION) - 2.317µs
[DEBUG] 13:28:30.043 shell.go:Getenv:389 → NO DATA
[TRACE] 13:28:30.043 shell.go:Getenv(SSH_CLIENT) - 1.509µs
[TRACE] 13:28:30.043 shell.go:TemplateCache() - 142ns
[TRACE] 13:28:30.043 shell.go:Flags() - 285ns
[TRACE] 13:28:30.043 shell.go:Pwd() - 180ns
[TRACE] 13:28:30.043 shell.go:GOOS() - 54ns
[DEBUG] 13:28:30.043 segment.go:SetEnabled:494 → Segment: Shell
[DEBUG] 13:28:30.043 properties.go:GetKeyValueMap:46 → mapped_shell_names: map[fish:󰈺]
[TRACE] 13:28:30.043 shell.go:Shell() - 207ns
[TRACE] 13:28:30.043 shell.go:Flags() - 46ns
[TRACE] 13:28:30.043 shell.go:TemplateCache() - 885ns
[TRACE] 13:28:30.043 shell.go:TemplateCache() - 239ns
[DEBUG] 13:28:30.043 properties.go:GetBool:22 → always_enabled: true
[TRACE] 13:28:30.043 shell.go:TemplateCache() - 50ns
[DEBUG] 13:28:30.047 shell.go:HasFilesInDir:455 → false
[TRACE] 13:28:30.047 shell.go:HasFilesInDir(pyvenv.cfg) - 4.136277ms
[DEBUG] 13:28:30.049 shell.go:HasFilesInDir:455 → false
[TRACE] 13:28:30.049 shell.go:HasFilesInDir(pyvenv.cfg) - 2.660687ms
[DEBUG] 13:28:30.049 shell.go:Getenv:389 → NO DATA
[TRACE] 13:28:30.049 shell.go:Getenv(VIRTUAL_ENV) - 4.456µs
[DEBUG] 13:28:30.049 shell.go:Getenv:389 → NO DATA
[TRACE] 13:28:30.049 shell.go:Getenv(CONDA_ENV_PATH) - 1.589µs
[DEBUG] 13:28:30.049 shell.go:Getenv:389 → NO DATA
[TRACE] 13:28:30.049 shell.go:Getenv(CONDA_DEFAULT_ENV) - 1.676µs
[TRACE] 13:28:30.049 shell.go:Shell() - 155ns
[TRACE] 13:28:30.050 shell.go:TemplateCache() - 369ns
[TRACE] 13:28:30.050 shell.go:Shell() - 131ns
[TRACE] 13:28:30.050 shell.go:TemplateCache() - 379ns
[TRACE] 13:28:30.050 shell.go:TemplateCache() - 45ns
[TRACE] 13:28:30.050 shell.go:Shell() - 111ns
[DEBUG] 13:28:30.050 shell.go:Getenv:389 → NO DATA
[TRACE] 13:28:30.050 shell.go:Getenv(TERM_PROGRAM) - 3.604µs
[TRACE] 13:28:30.051 shell.go:TemplateCache() - 78ns
[TRACE] 13:28:30.051 shell.go:Shell() - 78ns
[TRACE] 13:28:30.051 shell.go:Shell() - 39ns
[TRACE] 13:28:30.051 shell.go:Shell() - 23ns
[TRACE] 13:28:30.051 shell.go:Shell() - 22ns
[DEBUG] 13:28:30.051 shell.go:Getenv:389 → NO DATA
[TRACE] 13:28:30.051 shell.go:Getenv(XDG_CACHE_HOME) - 2.544µs
[TRACE] 13:28:30.051 shell_unix.go:CachePath() - 21.965µs
[TRACE] 13:28:30.051 shell.go:Flags() - 103ns
JanDeDobbeleer commented 1 year ago

I'll have a look when I'm back from my holidays. What's interesting is that it's truly gone.

JanDeDobbeleer commented 1 year ago

@NoahMDMi I can't reproduce this with the same fish version using your config on macOS. So, I'm assuming this is going to be a terminal issue. The character is actually swallowed, so this would imply there's an ANSI character being printed that clears the line at then end (that's the hack we have for PowerShell as well, maybe fish does this too on Linux for some reason). Either way, it's either a fish, or terminal issue, but we do get the correct line length and place the block correctly, otherwise it would overflow to the next line (which it doesn't).

image

soxfox42 commented 12 months ago

I'm encountering this same issue in Windows Terminal, ConEmu and Alacritty, so it doesn't seem to be a terminal issue. In Alacritty (top lines are bash, bottom are fish): image I'm also using the same theme for PowerShell, where it works fine.

JanDeDobbeleer commented 12 months ago

@soxfox42 still a fish issue on Windows in that case as I'm unable to reproduce on macOS. That implies that somehow they do things differently (and incorrect) there.

soxfox42 commented 12 months ago

Yep, looks like you're right. I can reproduce the issue with a custom fish_prompt. Interestingly, I can also reproduce it in Termux on Android, but not in the terminal emulators I've tried on Linux.

I'll see if there's any reports of this on the fish side. For anyone else facing this problem, here's the fish issue. Looks like it was fixed, then reverted because the fix broke more things.

JanDeDobbeleer commented 12 months ago

@soxfox42 we had that logic in oh-my-posh as well and I can confirm that breaks a lot of things. So yeah, challenging.

github-actions[bot] commented 5 months ago

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