JanDeDobbeleer / oh-my-posh

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

Possible side effect of removal of rpath support? #5329

Closed dschulman-repay closed 2 months ago

dschulman-repay commented 2 months ago

Code of Conduct

What happened?

I'm using Oh My Posh on Ubuntu 24.04 under WSL. My prompting sequences worked fine under Oh My Posh 21.27.0, but the upgrade to 22.0.1 seems to have broken the way escape sequences are handled:

 dschulman   ~    oh-my-posh version
22.0.1
\[\]in \[\]\[\]bash\[\]\[\] \[\]\[\]at \[\]\[\]16:18:29\[\]\[\] dschulman   ~   

I read about the removal of rpathsupport in the release notes, but didn't see anything which looked like it could explain the behavior I'm seeing, nor what to do about it. For what it's worth, I use the same versions of Oh My Posh in Linux, MS-DOS command shell, and PowerShell; the upgrade didn't cause any unexpected behavior anywhere except under WSL/Linux.

Have I missed something? Any ideas would be welcome.

Theme

default

What OS are you seeing the problem on?

Linux

Which shell are you using?

bash

Log output

Version: 22.0.1

Shell: bash (5.2.21(1)-release)

Prompt:

 dschulman   ~   

Segments:

ConsoleTitle(true)                        -   1 ms
Session(true)                             -   4 ms
Path(true)                                -   2 ms
Exit(true)                                -   3 ms
Node(false)                               -   0 ms
Go(false)                                 -   0 ms
Python(false)                             -   0 ms
Shell(false)                              -   0 ms
Time(false)                               -   0 ms

Run duration: 8.578481ms

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

Config path: /home/dschulman/.poshthemes/default.omp.json

Logs:

[DEBUG] 16:17:15.943 os.go:Getenv:309 → NO DATA
[TRACE] 16:17:15.943 os.go:Getenv(OMP_CACHE_DIR) - 38.175µs
[DEBUG] 16:17:15.943 os.go:Getenv:309 → NO DATA
[TRACE] 16:17:15.943 os.go:Getenv(XDG_CACHE_HOME) - 2.346µs
[TRACE] 16:17:15.943 os_unix.go:CachePath() - 68.479µs
[DEBUG] 16:17:15.943 os.go:Getenv:309 → /home/dschulman/.poshthemes/default.omp.json
[TRACE] 16:17:15.943 os.go:Getenv(POSH_THEME) - 3.535µs
[DEBUG] 16:17:15.943 os_unix.go:Platform:87 → ubuntu
[TRACE] 16:17:15.943 os.go:resolveConfigPath() - 9.498µs
[TRACE] 16:17:15.943 os.go:Init() - 223.244µs
[TRACE] 16:17:15.943 os.go:Flags() - 40ns
[TRACE] 16:17:15.943 load.go:loadConfig() - 606.169µs
[TRACE] 16:17:15.943 os.go:Flags() - 53ns
[DEBUG] 16:17:15.943 debug.go:44 → Terminal shell: %s shell
[DEBUG] 16:17:15.943 debug.go:44 → Terminal program: %s Windows Terminal
[DEBUG] 16:17:15.943 os.go:Getenv:309 → NO DATA
[TRACE] 16:17:15.943 os.go:Getenv(OMP_CACHE_DISABLED) - 2.605µs
[DEBUG] 16:17:15.943 os.go:Shell:584 → no shell name provided in flags, trying to detect it
[DEBUG] 16:17:15.944 os.go:Shell:592 → process name: bash
[TRACE] 16:17:15.944 os.go:Shell() - 445.358µs
[DEBUG] 16:17:15.944 os.go:Getenv:309 → 5.2.21(1)-release
[TRACE] 16:17:15.944 os.go:Getenv(POSH_SHELL_VERSION) - 2.472µs
[DEBUG] 16:17:15.944 debug.go:PrintDebug:23 → Segment: Title
[DEBUG] 16:17:15.944 text.go:Render:73 → Rendering template: {{ .Shell }} in {{ .Folder }}
[TRACE] 16:17:15.944 os_unix.go:Root() - 501ns
[TRACE] 16:17:15.944 os.go:Shell() - 130ns
[TRACE] 16:17:15.944 os.go:StatusCodes() - 51ns
[DEBUG] 16:17:15.944 os_unix.go:IsWsl:35 → true
[TRACE] 16:17:15.944 os_unix.go:IsWsl() - 5.19µs
[DEBUG] 16:17:15.944 os.go:TemplateCache:792 → environment: [SHELL=/bin/bash PINENTRY_BINARY=/usr/bin/pinentry-curses NVM_INC=/home/dschulman/.nvm/versions/node/v22.4.0/include/node WSL2_GUI_APPS_ENABLED=1 POSH_PID=412 WSL_DISTRO_NAME=Ubuntu-24.04 WT_SESSION=92b47870-e8df-41bf-908e-f8aa40c9d3db LESS_TERMCAP_se= LESS_TERMCAP_so= AWS_DEFAULT_REGION=us-west-2 GPG_TTY=/dev/pts/0 EDITOR=/usr/bin/micro NAME=REPAY-71410 PWD=/home/dschulman OFFA_ENV=Playground - Test LOGNAME=dschulman MOTD_SHOWN=update-motd AWS_DEFAULT_PROFILE=corp_playground_qe_dev HOME=/home/dschulman LANG=C.UTF-8 WSL_INTEROP=/run/WSL/407_interop 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=93:ow=33: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: POSH_SHELL_VERSION=5.2.21(1)-release AWS_DEFAULT_OUTPUT=json WAYLAND_DISPLAY=wayland-0 CONDA_PROMPT_MODIFIER=false NVM_DIR=/home/dschulman/.nvm CONTAINERD_SNAPSHOTTER=fuse-overlayfs LESSCLOSE=/usr/bin/lesspipe %s %s TERM=xterm-256color LESS_TERMCAP_mb= LESS_TERMCAP_me= LESS_TERMCAP_md= LESSOPEN=| /usr/bin/lesspipe %s USER=dschulman DISPLAY=:0 LESS_TERMCAP_ue= SHLVL=1 NVM_CD_FLAGS= LESS_TERMCAP_us= KUBECONFIG=/home/dschulman/.kube/config POSH_THEME=/home/dschulman/.poshthemes/default.omp.json XDG_RUNTIME_DIR=/run/user/1002/ JQ_COLORS=0;90:0;37:0;37:0;37:0;32:1;37:1;37:1;33 WSLENV=WT_SESSION:WT_PROFILE_ID: AWS_SHARED_CREDENTIALS_FILE=/home/dschulman/.aws/credentials XDG_DATA_DIRS=/usr/local/share:/usr/share:/var/lib/snapd/desktop K9S_EDITOR=/usr/bin/micro PATH=/home/dschulman/.local/bin:/home/dschulman/bin:/usr/local/bin:/home/dschulman/.local/bin:/home/dschulman/.nvm/versions/node/v22.4.0/bin:/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/Thycotic/Agents/ApplicationControl/x64:/mnt/c/Program Files/Common Files/Oracle/Java/javapath:/mnt/c/Program Files/FireDaemon OpenSSL 3/bin/:/mnt/c/Program Files/Microsoft/jdk-21.0.3.9-hotspot/bin:/mnt/c/Program Files/clink/:/mnt/c/Program Files (x86)/Common Files/Oracle/Java/javapath:/mnt/c/ProgramData/chocolatey/bin:/mnt/c/Program Files/7-Zip/:/mnt/c/Program Files (x86)/GnuWin32/bin/:/mnt/c/Windows:/mnt/c/Windows/System32/Wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0/:/mnt/c/Windows/System32/OpenSSH/:/mnt/c/Windows/system32:/mnt/c/tools/BCURRAN3:/mnt/c/Program Files/OpenSSH-Win64:/mnt/c/Program Files/FireDaemon OpenSSL 3/bin:/mnt/c/Program Files (x86)/oh-my-posh/bin:/mnt/c/Program Files (x86)/gnupg/bin:/mnt/c/Program Files/Kubernetes/Minikube:/mnt/c/Program Files/Microsoft VS Code/bin:/mnt/c/Program Files/Azure Data Studio/bin:/mnt/c/Program Files (x86)/Windows Kits/10/Windows Performance Toolkit/:/mnt/c/Program Files/WinMerge:/mnt/c/Program Files/Microsoft SQL Server/Client SDK/ODBC/170/Tools/Binn/:/mnt/c/Program Files (x86)/Microsoft SQL Server/160/DTS/Binn/:/mnt/c/Program Files/WinGet/Links:/mnt/c/Program Files (x86)/dotnet-core-uninstall/:/mnt/c/Program Files/dotnet/:/mnt/c/Program Files/Microsoft SQL Server/150/Tools/Binn/:/mnt/c/Program Files/Primesieve/bin:/mnt/c/Program Files/WinGet/Packages/Derailed.k9s_Microsoft.Winget.Source_8wekyb3d8bbwe:/mnt/c/Program Files (x86)/GnuPG/bin:/mnt/c/Program Files (x86)/WinGet/Packages/GnuWin32.Grep_Microsoft.Winget.Source_8wekyb3d8bbwe/grep-3.5_win32:/mnt/c/Program Files/OpenJDK/jdk-22.0.1/bin:/mnt/c/Program Files/Git/cmd:/mnt/c/Program Files/Packages/Portable/Fastfetch-cli.Fastfetch_Microsoft.Winget.Source_8wekyb3d8bbwe:/mnt/c/Program Files/Packages/Portable/Microsoft.Sysinternals.ProcessMonitor_Microsoft.Winget.Source_8wekyb3d8bbwe:/mnt/c/Program Files/PowerShell/7/:/mnt/c/Program Files/Yubico/YubiKey Manager CLI/:/mnt/c/Program Files/Docker/Docker/resources/bin:/mnt/c/Program Files/GitHub CLI/:/mnt/c/Program Files/Amazon/AWSCLIV2/:/mnt/c/Program Files/nodejs/:/mnt/c/Users/dschulman/AppData/Local/Programs/Python/Python312/Scripts/:/mnt/c/Users/dschulman/AppData/Local/Programs/Python/Python312/:/mnt/c/Users/dschulman/AppData/Local/Programs/Python/Launcher/:/mnt/c/ProgramData/chocolatey/bin:/mnt/c/Users/dschulman/AppData/Local/Microsoft/WindowsApps:/mnt/c/Users/dschulman/.dotnet/tools:/mnt/c/Users/dschulman/AppData/Local/Programs/oh-my-posh/bin:/mnt/c/Users/dschulman/AppData/Local/Postman:/mnt/c/Users/dschulman/AppData/Local/Microsoft/WinGet/Links:/mnt/c/Program Files/Azure Data Studio/bin:/mnt/c/Program Files/nodejs:/mnt/c/Program Files/AESCrypt:/mnt/c/Program Files/Microsoft Visual Studio/2022/Professional/Common7/IDE:/mnt/c/Users/dschulman/AppData/Local/GitHubDesktop/bin:/mnt/c/Users/dschulman/AppData/Roaming/npm:/mnt/c/Users/dschulman/AppData/Local/Markdown Monster:/snap/bin DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1002/bus NVM_BIN=/home/dschulman/.nvm/versions/node/v22.4.0/bin HOSTTYPE=x86_64 POWERLINE_COMMAND=oh-my-posh ENVMAN_LOAD=loaded PULSE_SERVER=unix:/mnt/wslg/PulseServer WT_PROFILE_ID={acbafd15-cbbb-5bb3-8a61-bed446ff4b83} _=/usr/local/bin/oh-my-posh OLDPWD=/home/dschulman/.poshthemes]
[TRACE] 16:17:15.944 os.go:GOOS() - 83ns
[DEBUG] 16:17:15.944 os.go:Pwd:339 → /home/dschulman
[TRACE] 16:17:15.944 os.go:Pwd() - 14.716µs
[DEBUG] 16:17:15.944 os_unix.go:IsWsl:35 → true
[TRACE] 16:17:15.944 os_unix.go:IsWsl() - 2.635µs
[DEBUG] 16:17:15.945 os.go:RunCommand:514 → //wsl.localhost/Ubuntu-24.04/home/dschulman
[TRACE] 16:17:15.945 os.go:RunCommand(wslpath -m /home/dschulman) - 1.111203ms
[TRACE] 16:17:15.945 os.go:GOOS() - 73ns
[TRACE] 16:17:15.945 os.go:GOOS() - 39ns
[TRACE] 16:17:15.945 os.go:GOOS() - 36ns
[TRACE] 16:17:15.945 os.go:GOOS() - 34ns
[TRACE] 16:17:15.945 os.go:GOOS() - 35ns
[TRACE] 16:17:15.945 os.go:GOOS() - 35ns
[TRACE] 16:17:15.945 os.go:GOOS() - 34ns
[TRACE] 16:17:15.945 os.go:GOOS() - 34ns
[TRACE] 16:17:15.945 os.go:GOOS() - 34ns
[TRACE] 16:17:15.945 os.go:GOOS() - 34ns
[TRACE] 16:17:15.945 os.go:GOOS() - 33ns
[DEBUG] 16:17:15.945 os.go:User:477 → dschulman
[TRACE] 16:17:15.945 os.go:User() - 4.152µs
[DEBUG] 16:17:15.945 os.go:Host:494 → REPAY-71410
[TRACE] 16:17:15.945 os.go:Host() - 4.537µs
[TRACE] 16:17:15.945 os.go:GOOS() - 34ns
[DEBUG] 16:17:15.945 os_unix.go:Platform:87 → ubuntu
[DEBUG] 16:17:15.945 os.go:Getenv:309 → 1
[TRACE] 16:17:15.945 os.go:Getenv(SHLVL) - 2.895µs
[TRACE] 16:17:15.945 os.go:TemplateCache() - 1.256804ms
[TRACE] 16:17:15.945 os.go:Shell() - 124ns
[TRACE] 16:17:15.945 os.go:Flags() - 68ns
[DEBUG] 16:17:15.945 os.go:Getenv:309 → NO DATA
[TRACE] 16:17:15.945 os.go:Getenv(POSH_CURSOR_LINE) - 2.507µs
[DEBUG] 16:17:15.945 os.go:Getenv:309 → NO DATA
[TRACE] 16:17:15.945 os.go:Getenv(POSH_CURSOR_COLUMN) - 2.059µs
[TRACE] 16:17:15.945 os.go:Flags() - 34ns
[TRACE] 16:17:15.945 os.go:Flags() - 34ns
[TRACE] 16:17:15.946 os.go:Flags() - 110ns
[DEBUG] 16:17:15.946 status.go:Init:53 → {{ .Code }}
[TRACE] 16:17:15.946 os.go:Pwd() - 162ns
[TRACE] 16:17:15.946 os.go:GOOS() - 1.96µs
[DEBUG] 16:17:15.946 segment.go:SetEnabled:115 → Segment: Exit
[TRACE] 16:17:15.946 os.go:StatusCodes() - 105ns
[DEBUG] 16:17:15.946 text.go:Render:73 → Rendering template: {{ .Code }}
[TRACE] 16:17:15.946 os.go:Flags() - 201ns
[TRACE] 16:17:15.946 os.go:Flags() - 302ns
[TRACE] 16:17:15.946 os.go:Pwd() - 211ns
[TRACE] 16:17:15.946 os.go:GOOS() - 60ns
[DEBUG] 16:17:15.946 segment.go:SetEnabled:115 → Segment: Session
[TRACE] 16:17:15.946 os.go:Pwd() - 320ns
[TRACE] 16:17:15.946 os.go:GOOS() - 55ns
[TRACE] 16:17:15.946 os.go:Flags() - 124ns
[DEBUG] 16:17:15.946 os.go:Getenv:309 → NO DATA
[TRACE] 16:17:15.948 os.go:Getenv(SSH_CONNECTION) - 1.958812ms
[DEBUG] 16:17:15.948 os.go:Getenv:309 → NO DATA
[TRACE] 16:17:15.948 os.go:Getenv(SSH_CLIENT) - 4.018µs
[DEBUG] 16:17:15.948 os_unix.go:Platform:87 → ubuntu
[DEBUG] 16:17:15.946 segment.go:SetEnabled:115 → Segment: Path
[DEBUG] 16:17:15.948 path.go:124 → display_cygpath: false
[TRACE] 16:17:15.948 os.go:GOOS() - 70ns
[TRACE] 16:17:15.948 os.go:PathSeparator() - 49ns
[TRACE] 16:17:15.948 os.go:Pwd() - 102ns
[TRACE] 16:17:15.948 os.go:Shell() - 119ns
[TRACE] 16:17:15.948 os.go:Shell() - 39ns
[DEBUG] 16:17:15.948 path.go:replaceMappedLocations:517 → mapped_locations_enabled: true
[DEBUG] 16:17:15.948 path.go:replaceMappedLocations:518 → 
[DEBUG] 16:17:15.948 path.go:replaceMappedLocations:519 → 
[TRACE] 16:17:15.948 os.go:GOOS() - 57ns
[DEBUG] 16:17:15.948 path.go:replaceMappedLocations:520 → ~
[DEBUG] 16:17:15.948 path.go:replaceMappedLocations:525 → mapped_locations: map[]
[TRACE] 16:17:15.948 os.go:Flags() - 189ns
[TRACE] 16:17:15.948 os.go:GOOS() - 199ns
[TRACE] 16:17:15.948 os.go:GOOS() - 83ns
[DEBUG] 16:17:15.948 path.go:makeFolderFormatMap:841 → NO DATA
[TRACE] 16:17:15.948 os.go:Pwd() - 86ns
[TRACE] 16:17:15.948 os.go:TemplateCache() - 161ns
[TRACE] 16:17:15.948 os.go:StackCount() - 93ns
[TRACE] 16:17:15.948 os_unix.go:DirIsWritable(/home/dschulman) - 5.34µs
[TRACE] 16:17:15.948 os.go:TemplateCache() - 79ns
[TRACE] 16:17:15.948 os.go:Pwd() - 271ns
[TRACE] 16:17:15.948 os.go:Pwd() - 77ns
[TRACE] 16:17:15.948 os.go:GOOS() - 55ns
[TRACE] 16:17:15.948 os.go:GOOS() - 93ns
[DEBUG] 16:17:15.948 segment.go:SetEnabled:115 → Segment: Git
[DEBUG] 16:17:15.948 os_unix.go:IsWsl:35 → true
[TRACE] 16:17:15.948 os_unix.go:IsWsl() - 3.022µs
[DEBUG] 16:17:15.948 segment.go:SetEnabled:115 → Segment: Root
[TRACE] 16:17:15.948 os_unix.go:Root() - 845ns
[DEBUG] 16:17:15.948 os.go:FileContent:451 ↓
    6.6.36.3-microsoft-standard-WSL2+

[TRACE] 16:17:15.948 os.go:FileContent(/proc/sys/kernel/osrelease) - 24.876µs
[TRACE] 16:17:15.948 os_unix.go:IsWsl2() - 34.691µs
[TRACE] 16:17:15.948 os.go:Pwd() - 44ns
[TRACE] 16:17:15.949 os.go:TemplateCache() - 344ns
[DEBUG] 16:17:15.949 status.go:Enabled:42 → always_enabled: true
[TRACE] 16:17:15.949 os.go:TemplateCache() - 348ns
[DEBUG] 16:17:15.950 os.go:RunCommand:514 → //wsl.localhost/Ubuntu-24.04/home/dschulman
[TRACE] 16:17:15.950 os.go:RunCommand(wslpath -m /home/dschulman) - 2.051514ms
[TRACE] 16:17:15.950 os.go:GOOS() - 91ns
[DEBUG] 16:17:15.950 os.go:RunCommand:514 → NO DATA
[TRACE] 16:17:15.950 os.go:RunCommand(who am i) - 2.458746ms
[DEBUG] 16:17:15.950 os.go:CommandPath:536 → /usr/bin/git
[TRACE] 16:17:15.950 os.go:CommandPath(git) - 39.822µs
[TRACE] 16:17:15.950 os.go:HasCommand(git) - 42.933µs
[TRACE] 16:17:15.950 os.go:Pwd() - 116ns
[DEBUG] 16:17:15.950 os.go:ResolveSymlink:436 → /home/dschulman
[TRACE] 16:17:15.950 os.go:ResolveSymlink(/home/dschulman) - 8.041µs
[TRACE] 16:17:15.950 os.go:TemplateCache() - 490ns
[ERROR] 16:17:15.950 os.go:HasParentFilePath:700 → stat .git: no such file or directory
[TRACE] 16:17:15.950 os.go:HasParentFilePath(.git) - 64.926µs
[DEBUG] 16:17:15.950 git.go:shouldDisplay:284 → fetch_bare_info: false
[DEBUG] 16:17:15.950 text.go:Render:73 → Rendering template:  {{ if gt .Code 0 }}{{ else }}{{ end }}
[DEBUG] 16:17:15.950 text.go:Render:73 → Rendering template:   {{ path .Path .Location }}
[DEBUG] 16:17:15.950 text.go:Render:73 → Rendering template:  {{ if .SSHSession }} {{ end }}{{ .UserName }}
[TRACE] 16:17:15.950 os.go:TemplateCache() - 154ns
[TRACE] 16:17:15.951 os.go:TemplateCache() - 113ns
[TRACE] 16:17:15.951 os.go:TemplateCache() - 115ns
[DEBUG] 16:17:15.951 text.go:Render:73 → Rendering template: powerline
[DEBUG] 16:17:15.951 text.go:Render:73 → Rendering template: powerline
[DEBUG] 16:17:15.951 text.go:Render:73 → Rendering template: diamond
[DEBUG] 16:17:15.951 text.go:Render:73 → Rendering template: powerline
[DEBUG] 16:17:15.951 text.go:Render:73 → Rendering template: {{ if gt .Code 0 }}p:red{{ end }}
[TRACE] 16:17:15.951 os.go:TemplateCache() - 91ns
[DEBUG] 16:17:15.951 text.go:Render:73 → Rendering template: diamond
[DEBUG] 16:17:15.951 text.go:Render:73 → Rendering template: {{ if gt .Code 0 }}p:red{{ end }}
[TRACE] 16:17:15.951 os.go:TemplateCache() - 116ns
[TRACE] 16:17:15.951 os.go:Shell() - 72ns
[TRACE] 16:17:15.951 os.go:Shell() - 41ns
[TRACE] 16:17:15.951 os.go:Flags() - 53ns
[TRACE] 16:17:15.951 os.go:Shell() - 43ns
[TRACE] 16:17:15.951 os.go:Shell() - 41ns
[DEBUG] 16:17:15.951 os.go:Getenv:309 → NO DATA
[TRACE] 16:17:15.951 os.go:Getenv(OMP_CACHE_DIR) - 3.392µs
[DEBUG] 16:17:15.951 os.go:Getenv:309 → NO DATA
[TRACE] 16:17:15.951 os.go:Getenv(XDG_CACHE_HOME) - 1.525µs
[TRACE] 16:17:15.951 os_unix.go:CachePath() - 18.585µs
[TRACE] 16:17:15.951 os.go:Flags() - 49ns
JanDeDobbeleer commented 2 months ago

@dschulman-repay did you upgrade and restart the shell? Because if you didn't, it will still try to print the right prompt, but escaped (which would result in what you're seeing).

dschulman-repay commented 2 months ago

My apologies. Restarting the shell did indeed clear the issue; I wasn't aware that this was necessary for this upgrade.

JanDeDobbeleer commented 2 months ago

@dschulman-repay not always, but for this one, yes.