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

Right-aligned prompt bugs out when previous output is not newline-terminated

Bilge opened this issue · comments

commented

Code of Conduct

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

What happened?

Probably best explained with a screenshot.

image

Theme

powerlevel10k_rainbow (modified)

What OS are you seeing the problem on?

Windows

Which shell are you using?

bash

Log output

[DEBUG] 09:18:39.582 os.go:Getenv:309 → C:\Users\Bilge\AppData\Local
[TRACE] 09:18:39.582 os.go:Getenv(LOCALAPPDATA) - 514.2µs
[TRACE] 09:18:39.582 os_windows.go:CachePath() - 514.2µs
[DEBUG] 09:18:39.583 os.go:Getenv:309 → C:/Users/Bilge/.p10k.omp.yaml
[TRACE] 09:18:39.583 os.go:Getenv(POSH_THEME) - 0s
[DEBUG] 09:18:39.583 os.go:Shell:584 → no shell name provided in flags, trying to detect it
[DEBUG] 09:18:39.589 os.go:Shell:592 → process name: bash.exe
[TRACE] 09:18:39.589 os.go:Shell() - 6.2266ms
[DEBUG] 09:18:39.589 os.go:resolveConfigPath:269 → Cygwin detected, using full path for config
[TRACE] 09:18:39.589 os.go:resolveConfigPath() - 6.2266ms
[TRACE] 09:18:39.589 os.go:Init() - 7.253ms
[TRACE] 09:18:39.589 os.go:Flags() - 0s
[TRACE] 09:18:39.592 load.go:loadConfig() - 2.6511ms
[TRACE] 09:18:39.592 os.go:Flags() - 0s
[DEBUG] 09:18:39.592 debug.go:44 → Terminal shell: %s shell
[DEBUG] 09:18:39.592 debug.go:44 → Terminal program: %s mintty
[DEBUG] 09:18:39.592 os.go:Getenv:309 → NO DATA
[TRACE] 09:18:39.592 os.go:Getenv(OMP_CACHE_DISABLED) - 0s
[TRACE] 09:18:39.592 os_windows.go:WindowsRegistryKeyValue(HKEY_CURRENT_USER\Software\Microsoft\Windows\DWM\ColorizationColor) - 0s
[TRACE] 09:18:39.592 os.go:GOOS() - 0s
[TRACE] 09:18:39.592 os.go:GOOS() - 0s
[TRACE] 09:18:39.592 os.go:GOOS() - 0s
[TRACE] 09:18:39.592 os.go:GOOS() - 0s
[TRACE] 09:18:39.592 os.go:GOOS() - 0s
[TRACE] 09:18:39.592 os.go:GOOS() - 0s
[TRACE] 09:18:39.592 os.go:GOOS() - 0s
[TRACE] 09:18:39.592 os.go:GOOS() - 0s
[TRACE] 09:18:39.592 os.go:GOOS() - 0s
[TRACE] 09:18:39.592 os.go:GOOS() - 0s
[TRACE] 09:18:39.592 os.go:GOOS() - 0s
[TRACE] 09:18:39.592 os.go:GOOS() - 0s
[TRACE] 09:18:39.592 os.go:GOOS() - 0s
[TRACE] 09:18:39.592 os.go:GOOS() - 0s
[TRACE] 09:18:39.592 os.go:GOOS() - 0s
[TRACE] 09:18:39.592 os.go:GOOS() - 0s
[TRACE] 09:18:39.592 os.go:GOOS() - 0s
[TRACE] 09:18:39.592 os.go:GOOS() - 0s
[TRACE] 09:18:39.592 os.go:GOOS() - 0s
[DEBUG] 09:18:39.592 os_windows.go:WindowsRegistryKeyValue:219 → ColorizationColor(DWORD): 0xC40078D7
[TRACE] 09:18:39.592 os.go:Shell() - 0s
[DEBUG] 09:18:39.592 os.go:Getenv:309 → 5.2.26(1)-release
[TRACE] 09:18:39.592 os.go:Getenv(POSH_SHELL_VERSION) - 0s
[DEBUG] 09:18:39.592 debug.go:PrintDebug:23 → Segment: Title
[DEBUG] 09:18:39.592 text.go:Render:73 → Rendering template: {{ .Shell }} in {{ .Folder }}
[TRACE] 09:18:39.592 os_windows.go:Root() - 0s
[TRACE] 09:18:39.592 os.go:Shell() - 0s
[TRACE] 09:18:39.592 os.go:StatusCodes() - 0s
[TRACE] 09:18:39.592 os_windows.go:IsWsl() - 0s
[DEBUG] 09:18:39.592 os.go:TemplateCache:792 ↓
[TRACE] 09:18:39.592 os.go:GOOS() - 0s
[DEBUG] 09:18:39.592 os.go:Pwd:339 → C:\Users\Bilge\Documents\PhpstormProjects\pip
[TRACE] 09:18:39.592 os.go:Pwd() - 0s
[DEBUG] 09:18:39.592 os_windows.go:58 → C:\Users\Bilge
[TRACE] 09:18:39.592 os.go:GOOS() - 0s
[TRACE] 09:18:39.592 os_windows.go:IsWsl() - 0s
[TRACE] 09:18:39.592 os.go:GOOS() - 0s
[TRACE] 09:18:39.592 os.go:GOOS() - 0s
[TRACE] 09:18:39.592 os.go:GOOS() - 0s
[TRACE] 09:18:39.592 os.go:GOOS() - 0s
[TRACE] 09:18:39.592 os.go:GOOS() - 0s
[TRACE] 09:18:39.592 os.go:GOOS() - 0s
[DEBUG] 09:18:39.592 os.go:User:477 → Bilge
[TRACE] 09:18:39.592 os.go:User() - 0s
[DEBUG] 09:18:39.592 os.go:Host:494 → Fractal
[TRACE] 09:18:39.592 os.go:Host() - 0s
[TRACE] 09:18:39.592 os.go:GOOS() - 0s
[DEBUG] 09:18:39.592 os.go:Getenv:309 → 1
[TRACE] 09:18:39.592 os.go:Getenv(SHLVL) - 0s
[TRACE] 09:18:39.592 os.go:TemplateCache() - 513.1µs
[TRACE] 09:18:39.592 os.go:Shell() - 0s
[TRACE] 09:18:39.592 os.go:Shell() - 0s
[TRACE] 09:18:39.592 os.go:Shell() - 0s
[DEBUG] 09:18:39.592 os.go:Getenv:309 → NO DATA
[TRACE] 09:18:39.592 os.go:Getenv(POSH_CURSOR_LINE) - 0s
[DEBUG] 09:18:39.592 os.go:Getenv:309 → NO DATA
[TRACE] 09:18:39.592 os.go:Getenv(POSH_CURSOR_COLUMN) - 0s
[TRACE] 09:18:39.592 os.go:Flags() - 0s
[TRACE] 09:18:39.592 os.go:Flags() - 0s
[TRACE] 09:18:39.592 os.go:Flags() - 0s
[TRACE] 09:18:39.592 os.go:Flags() - 0s
[TRACE] 09:18:39.592 os.go:Flags() - 0s
[TRACE] 09:18:39.592 os.go:Pwd() - 0s
[TRACE] 09:18:39.592 os.go:Pwd() - 0s
[TRACE] 09:18:39.592 os.go:Pwd() - 0s
[DEBUG] 09:18:39.592 os_windows.go:58 → C:\Users\Bilge
[TRACE] 09:18:39.592 os.go:Pwd() - 0s
[TRACE] 09:18:39.592 os.go:GOOS() - 0s
[DEBUG] 09:18:39.592 segment.go:SetEnabled:115 → Segment: Text
[DEBUG] 09:18:39.592 os_windows.go:58 → C:\Users\Bilge
[TRACE] 09:18:39.592 os.go:GOOS() - 0s
[TRACE] 09:18:39.592 os.go:GOOS() - 0s
[DEBUG] 09:18:39.592 os_windows.go:58 → C:\Users\Bilge
[TRACE] 09:18:39.592 os.go:TemplateCache() - 0s
[DEBUG] 09:18:39.592 segment.go:SetEnabled:115 → Segment: Git
[TRACE] 09:18:39.592 os.go:GOOS() - 0s
[DEBUG] 09:18:39.592 segment.go:SetEnabled:115 → Segment: Path
[DEBUG] 09:18:39.592 segment.go:SetEnabled:115 → Segment: Os
[TRACE] 09:18:39.592 os.go:GOOS() - 0s
[TRACE] 09:18:39.592 os.go:GOOS() - 0s
[DEBUG] 09:18:39.592 os.go:Getenv:309 → C:\Users\Bilge\AppData\Local
[TRACE] 09:18:39.592 os.go:Getenv(LOCALAPPDATA) - 0s
[DEBUG] 09:18:39.592 os.go:Enabled:34 → 
[DEBUG] 09:18:39.592 path.go:124 → display_cygpath: false
[TRACE] 09:18:39.592 os.go:GOOS() - 0s
[TRACE] 09:18:39.592 os.go:TemplateCache() - 0s
[TRACE] 09:18:39.592 os.go:PathSeparator() - 0s
[TRACE] 09:18:39.592 os.go:Pwd() - 0s
[TRACE] 09:18:39.592 os.go:Shell() - 0s
[TRACE] 09:18:39.592 os.go:Shell() - 0s
[DEBUG] 09:18:39.592 path.go:replaceMappedLocations:517 → mapped_locations_enabled: true
[DEBUG] 09:18:39.592 path.go:replaceMappedLocations:518 → 
[DEBUG] 09:18:39.592 path.go:replaceMappedLocations:519 → 
[DEBUG] 09:18:39.592 os_windows.go:58 → C:\Users\Bilge
[TRACE] 09:18:39.592 os.go:GOOS() - 0s
[TRACE] 09:18:39.592 os.go:GOOS() - 0s
[DEBUG] 09:18:39.592 path.go:replaceMappedLocations:520 → ~
[DEBUG] 09:18:39.592 path.go:replaceMappedLocations:525 → mapped_locations: map[]
[TRACE] 09:18:39.592 os.go:GOOS() - 0s
[TRACE] 09:18:39.592 os.go:GOOS() - 0s
[TRACE] 09:18:39.592 os.go:GOOS() - 0s
[TRACE] 09:18:39.592 os.go:GOOS() - 0s
[TRACE] 09:18:39.592 os.go:GOOS() - 0s
[TRACE] 09:18:39.592 os.go:GOOS() - 0s
[TRACE] 09:18:39.592 os.go:GOOS() - 0s
[TRACE] 09:18:39.592 os.go:GOOS() - 0s
[DEBUG] 09:18:39.592 path.go:makeFolderFormatMap:841 → NO DATA
[DEBUG] 09:18:39.592 os_windows.go:58 → C:\Users\Bilge
[DEBUG] 09:18:39.592 path.go:setStyle:192 → full
[DEBUG] 09:18:39.592 path.go:colorizePath:715 → cycle: []
[DEBUG] 09:18:39.592 path.go:getFolderSeparator:250 → NO DATA
[DEBUG] 09:18:39.592 path.go:getFolderSeparator:252 → /
[DEBUG] 09:18:39.592 path.go:colorizePath:718 → cycle_folder_separator: false
[DEBUG] 09:18:39.592 path.go:colorizePath:719 → %s
[DEBUG] 09:18:39.592 path.go:colorizePath:721 → %s
[DEBUG] 09:18:39.592 path.go:colorizePath:722 → %s
[DEBUG] 09:18:39.592 path.go:colorizePath:723 → %s
[TRACE] 09:18:39.592 os.go:Pwd() - 0s
[TRACE] 09:18:39.592 os.go:TemplateCache() - 0s
[TRACE] 09:18:39.592 os.go:StackCount() - 0s
[DEBUG] 09:18:39.593 win32_windows.go:isWriteable:299 → not current user or in group
[DEBUG] 09:18:39.593 win32_windows.go:isWriteable:303 → current user is member of S-1-5-32-544
[DEBUG] 09:18:39.593 win32_windows.go:isWriteable:311 ↓
    WRITE_DAC
    WRITE_OWNER
    SYNCHRONIZE
    DELETE
    READ_CONTROL
[DEBUG] 09:18:39.593 win32_windows.go:isWriteable:313 → user has write access
[TRACE] 09:18:39.593 os_windows.go:DirIsWritable() - 1.0213ms
[TRACE] 09:18:39.593 os.go:TemplateCache() - 0s
[DEBUG] 09:18:39.594 os.go:CommandPath:536 → C:\Program Files\Git\mingw64\bin\git.exe
[TRACE] 09:18:39.594 os.go:CommandPath(git.exe) - 2.0516ms
[TRACE] 09:18:39.594 os.go:HasCommand(git.exe) - 2.0516ms
[TRACE] 09:18:39.594 os.go:Pwd() - 0s
[DEBUG] 09:18:39.594 os.go:ResolveSymlink:436 → C:\Users\Bilge\Documents\PhpstormProjects\Pip
[TRACE] 09:18:39.594 os.go:ResolveSymlink(C:\Users\Bilge\Documents\PhpstormProjects\pip) - 0s
[TRACE] 09:18:39.594 os.go:HasParentFilePath(.git) - 0s
[DEBUG] 09:18:39.594 scm.go:shouldIgnoreRootRepository:130 → exclude_folders: []
[DEBUG] 09:18:39.595 os_windows.go:58 → C:\Users\Bilge
[TRACE] 09:18:39.595 os.go:GOOS() - 0s
[TRACE] 09:18:39.595 os.go:GOOS() - 0s
[TRACE] 09:18:39.595 os.go:GOOS() - 0s
[DEBUG] 09:18:39.595 git.go:Enabled:167 → fetch_user: false
[TRACE] 09:18:39.595 os.go:GOOS() - 0s
[TRACE] 09:18:39.595 os.go:GOOS() - 0s
[TRACE] 09:18:39.595 os.go:GOOS() - 0s
[TRACE] 09:18:39.595 os.go:GOOS() - 0s
[DEBUG] 09:18:39.595 os.go:Getenv:309 → NO DATA
[TRACE] 09:18:39.595 os.go:Getenv(POSH_GIT_STATUS) - 0s
[DEBUG] 09:18:39.595 git.go:Enabled:186 → fetch_status: true
[DEBUG] 09:18:39.595 git.go:shouldIgnoreStatus:413 → ignore_status: []
[DEBUG] 09:18:39.595 os_windows.go:58 → C:\Users\Bilge
[TRACE] 09:18:39.595 os.go:GOOS() - 0s
[DEBUG] 09:18:39.595 git.go:setGitStatus:549 → status_formats: map[]
[DEBUG] 09:18:39.595 git.go:getSwitchMode:850 → untracked_modes: map[]
[DEBUG] 09:18:39.595 git.go:getSwitchMode:850 → ignore_submodules: map[]
[DEBUG] 09:18:39.619 os.go:RunCommand:514 ↓
    # branch.oid d9a39512a5fef819ee4701ebe1d0d29340a45b4d
    # branch.head master
    # branch.upstream origin/master
    # branch.ab +0 -0
    1 .M N... 100644 100644 100644 c4a3d7bedf066fa71172127c5388cfb982dd6d7e c4a3d7bedf066fa71172127c5388cfb982dd6d7e README.md
    1 .M N... 100644 100644 100644 eeea4714524b3db8519c309f91557526147e7f92 eeea4714524b3db8519c309f91557526147e7f92 src/PipExtension.php
    ? .phpunit.result.cache
    ? test/.phpunit.result.cache
[TRACE] 09:18:39.619 os.go:RunCommand(git.exe -C C:/Users/Bilge/Documents/PhpstormProjects/Pip --no-optional-locks -c core.quotepath=false -c color.status=false status -unormal --branch --porcelain=2) - 24.1131ms
[DEBUG] 09:18:39.619 git.go:setGitHEADContext:601 → 
[DEBUG] 09:18:39.619 git.go:formatHEAD:724 → branch_max_length: 0
[DEBUG] 09:18:39.619 os.go:HasFolder:421 → false
[TRACE] 09:18:39.619 os.go:HasFolder(C:\Users\Bilge\Documents\PhpstormProjects\Pip\.git/rebase-merge) - 0s
[DEBUG] 09:18:39.619 os.go:HasFolder:421 → false
[TRACE] 09:18:39.619 os.go:HasFolder(C:\Users\Bilge\Documents\PhpstormProjects\Pip\.git/rebase-apply) - 0s
[DEBUG] 09:18:39.619 git.go:setGitHEADContext:652 → 
[DEBUG] 09:18:39.620 os.go:HasFilesInDir:392 → false
[TRACE] 09:18:39.620 os.go:HasFilesInDir(MERGE_MSG) - 829.6µs
[DEBUG] 09:18:39.620 os.go:HasFilesInDir:392 → false
[TRACE] 09:18:39.620 os.go:HasFilesInDir(CHERRY_PICK_HEAD) - 0s
[DEBUG] 09:18:39.620 os.go:HasFilesInDir:392 → false
[TRACE] 09:18:39.620 os.go:HasFilesInDir(REVERT_HEAD) - 0s
[DEBUG] 09:18:39.620 os.go:HasFilesInDir:392 → false
[TRACE] 09:18:39.620 os.go:HasFilesInDir(sequencer/todo) - 0s
[DEBUG] 09:18:39.620 git.go:432 → ≡
[DEBUG] 09:18:39.620 git.go:Enabled:197 → fetch_upstream_icon: true
[DEBUG] 09:18:39.620 git.go:getUpstreamIcon:488 → upstream_icons: map[]
[DEBUG] 09:18:39.620 git.go:getUpstreamIcon:509 → 
[TRACE] 09:18:39.620 os.go:TemplateCache() - 0s
[DEBUG] 09:18:39.620 text.go:Render:73 → Rendering template: <parentBackground,transparent>
[DEBUG] 09:18:39.620 text.go:Render:73 → Rendering template:  {{ .UpstreamIcon }}{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }}  {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }}  {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }}  {{ .StashCount }}{{ end }}
[DEBUG] 09:18:39.620 text.go:Render:73 → Rendering template:  {{ if .WSL }}WSL at {{ end }}{{.Icon}}
[DEBUG] 09:18:39.620 text.go:Render:73 → Rendering template:   {{ .Path }}
[TRACE] 09:18:39.620 os.go:TemplateCache() - 0s
[TRACE] 09:18:39.620 os.go:TemplateCache() - 0s
[ERROR] 09:18:39.620 os.go:FileContent:447 → open C:\Users\Bilge\Documents\PhpstormProjects\Pip\.git/logs/refs/stash: The system cannot find the file specified.
[TRACE] 09:18:39.620 os.go:FileContent(C:\Users\Bilge\Documents\PhpstormProjects\Pip\.git/logs/refs/stash) - 0s
[DEBUG] 09:18:39.620 text.go:Render:73 → Rendering template: diamond
[DEBUG] 09:18:39.620 text.go:Render:73 → Rendering template: diamond
[DEBUG] 09:18:39.620 text.go:Render:73 → Rendering template: {{ if or (.Working.Changed) (.Staging.Changed) }}#c4a000{{ end }}
[TRACE] 09:18:39.621 os.go:TemplateCache() - 0s
[DEBUG] 09:18:39.621 text.go:Render:73 → Rendering template: diamond
[DEBUG] 09:18:39.621 text.go:Render:73 → Rendering template: {{ if or (.Working.Changed) (.Staging.Changed) }}#c4a000{{ end }}
[TRACE] 09:18:39.621 os.go:TemplateCache() - 0s
[DEBUG] 09:18:39.621 text.go:Render:73 → Rendering template: plain
[TRACE] 09:18:39.621 os.go:Shell() - 0s
[TRACE] 09:18:39.621 os.go:Shell() - 0s
[TRACE] 09:18:39.621 os.go:Flags() - 0s
[TRACE] 09:18:39.621 os.go:Pwd() - 0s
[TRACE] 09:18:39.621 os.go:Flags() - 0s
[DEBUG] 09:18:39.621 os_windows.go:58 → C:\Users\Bilge
[TRACE] 09:18:39.621 os.go:GOOS() - 0s
[DEBUG] 09:18:39.621 segment.go:SetEnabled:115 → Segment: Time
[TRACE] 09:18:39.621 os.go:Flags() - 0s
[TRACE] 09:18:39.621 os.go:Pwd() - 0s
[DEBUG] 09:18:39.621 os_windows.go:58 → C:\Users\Bilge
[TRACE] 09:18:39.621 os.go:GOOS() - 0s
[DEBUG] 09:18:39.621 time.go:Enabled:29 → 15:04:05
[DEBUG] 09:18:39.621 segment.go:SetEnabled:115 → Segment: Root
[TRACE] 09:18:39.621 os.go:Pwd() - 0s
[TRACE] 09:18:39.621 os.go:TemplateCache() - 0s
[DEBUG] 09:18:39.621 os_windows.go:58 → C:\Users\Bilge
[TRACE] 09:18:39.621 os.go:Flags() - 0s
[TRACE] 09:18:39.621 os.go:GOOS() - 0s
[TRACE] 09:18:39.621 os.go:Flags() - 0s
[DEBUG] 09:18:39.621 segment.go:SetEnabled:115 → Segment: Executiontime
[DEBUG] 09:18:39.621 executiontime.go:Enabled:57 → always_enabled: false
[TRACE] 09:18:39.621 os.go:ExecutionTime() - 0s
[DEBUG] 09:18:39.621 executiontime.go:Enabled:59 → threshold: 500.000000
[TRACE] 09:18:39.621 os_windows.go:Root() - 0s
[DEBUG] 09:18:39.621 status.go:Init:53 → {{ .Code }}
[TRACE] 09:18:39.621 os.go:Pwd() - 0s
[DEBUG] 09:18:39.621 os_windows.go:58 → C:\Users\Bilge
[TRACE] 09:18:39.621 os.go:GOOS() - 0s
[DEBUG] 09:18:39.621 segment.go:SetEnabled:115 → Segment: Status
[TRACE] 09:18:39.621 os.go:Pwd() - 0s
[TRACE] 09:18:39.621 os.go:StatusCodes() - 0s
[DEBUG] 09:18:39.621 os_windows.go:58 → C:\Users\Bilge
[TRACE] 09:18:39.621 os.go:GOOS() - 0s
[DEBUG] 09:18:39.621 text.go:Render:73 → Rendering template: {{ .Code }}
[DEBUG] 09:18:39.621 segment.go:SetEnabled:115 → Segment: Aws
[DEBUG] 09:18:39.621 aws.go:Enabled:42 → display_default: false
[DEBUG] 09:18:39.621 os.go:Getenv:309 → NO DATA
[TRACE] 09:18:39.621 os.go:Getenv(AWS_VAULT) - 4.7µs
[DEBUG] 09:18:39.621 os.go:Getenv:309 → NO DATA
[TRACE] 09:18:39.621 os.go:Getenv(AWS_DEFAULT_PROFILE) - 0s
[DEBUG] 09:18:39.621 os.go:Getenv:309 → NO DATA
[TRACE] 09:18:39.621 os.go:Getenv(AWS_PROFILE) - 0s
[DEBUG] 09:18:39.621 os.go:Getenv:309 → NO DATA
[TRACE] 09:18:39.621 os.go:Getenv(AWS_REGION) - 0s
[DEBUG] 09:18:39.621 os.go:Getenv:309 → NO DATA
[TRACE] 09:18:39.621 os.go:Getenv(AWS_DEFAULT_REGION) - 0s
[DEBUG] 09:18:39.621 os.go:Getenv:309 → NO DATA
[TRACE] 09:18:39.621 os.go:Getenv(AWS_CONFIG_FILE) - 0s
[DEBUG] 09:18:39.621 os_windows.go:58 → C:\Users\Bilge
[DEBUG] 09:18:39.621 os.go:FileContent:451 ↓
    [default]
    region = eu-west-3

[TRACE] 09:18:39.621 os.go:FileContent(C:\Users\Bilge/.aws/config) - 0s
[TRACE] 09:18:39.621 os.go:TemplateCache() - 0s
[DEBUG] 09:18:39.621 status.go:Enabled:42 → always_enabled: true
[TRACE] 09:18:39.621 os.go:TemplateCache() - 0s
[DEBUG] 09:18:39.621 text.go:Render:73 → Rendering template:  {{ .CurrentDate | date .Format }} 
[DEBUG] 09:18:39.621 text.go:Render:73 → Rendering template:  {{ if gt .Code 0 }}{{ .Code }} {{ reason .Code }}{{ else }}{{ end }}
[TRACE] 09:18:39.622 os.go:TemplateCache() - 0s
[TRACE] 09:18:39.622 os.go:TemplateCache() - 0s
[DEBUG] 09:18:39.622 text.go:Render:73 → Rendering template: powerline
[DEBUG] 09:18:39.622 text.go:Render:73 → Rendering template: powerline
[DEBUG] 09:18:39.622 text.go:Render:73 → Rendering template: powerline
[DEBUG] 09:18:39.622 text.go:Render:73 → Rendering template: {{ if gt .Code 0 }}#cc2222{{ end }}
[TRACE] 09:18:39.622 os.go:TemplateCache() - 0s
[DEBUG] 09:18:39.622 text.go:Render:73 → Rendering template: {{ if gt .Code 0 }}#d3d7cf{{ end }}
[TRACE] 09:18:39.622 os.go:TemplateCache() - 0s
[DEBUG] 09:18:39.622 text.go:Render:73 → Rendering template: powerline
[DEBUG] 09:18:39.622 text.go:Render:73 → Rendering template: {{ if gt .Code 0 }}#cc2222{{ end }}
[TRACE] 09:18:39.622 os.go:TemplateCache() - 0s
[DEBUG] 09:18:39.622 text.go:Render:73 → Rendering template: {{ if gt .Code 0 }}#d3d7cf{{ end }}
[TRACE] 09:18:39.622 os.go:TemplateCache() - 0s
[DEBUG] 09:18:39.622 text.go:Render:73 → Rendering template: diamond
[DEBUG] 09:18:39.622 text.go:Render:73 → Rendering template: {{ if gt .Code 0 }}#cc2222{{ end }}
[TRACE] 09:18:39.622 os.go:TemplateCache() - 0s
[DEBUG] 09:18:39.622 os_windows.go:TerminalWidth:111 → terminal width: 120
[TRACE] 09:18:39.622 os_windows.go:TerminalWidth() - 0s
[TRACE] 09:18:39.622 os.go:Shell() - 0s
[TRACE] 09:18:39.622 os.go:Shell() - 0s
[TRACE] 09:18:39.622 os.go:Flags() - 0s
[TRACE] 09:18:39.622 os.go:Pwd() - 0s
[DEBUG] 09:18:39.622 os_windows.go:58 → C:\Users\Bilge
[TRACE] 09:18:39.622 os.go:GOOS() - 0s
[DEBUG] 09:18:39.622 segment.go:SetEnabled:115 → Segment: Text
[TRACE] 09:18:39.622 os.go:TemplateCache() - 0s
[DEBUG] 09:18:39.622 text.go:Render:73 → Rendering template: ❯
[TRACE] 09:18:39.622 os.go:Shell() - 0s
[DEBUG] 09:18:39.622 text.go:Render:73 → Rendering template: plain
[TRACE] 09:18:39.622 os.go:Shell() - 0s
[TRACE] 09:18:39.622 os.go:Shell() - 0s
[TRACE] 09:18:39.622 os.go:Flags() - 0s
[TRACE] 09:18:39.622 os.go:Shell() - 0s
[TRACE] 09:18:39.622 os.go:Shell() - 0s
[DEBUG] 09:18:39.622 os.go:Getenv:309 → C:\Users\Bilge\AppData\Local
[TRACE] 09:18:39.622 os.go:Getenv(LOCALAPPDATA) - 0s
[TRACE] 09:18:39.622 os_windows.go:CachePath() - 0s
[TRACE] 09:18:39.622 os.go:Flags() - 0s

@Bilge another rprompt bug. I'm really close to removing rprompt support in bash due to way too many side effects and bugs. Will give it one go, but this is just annoying as bash's prompt logic has no clean way to implement this.

commented

Don't remove it D: Even if it bugs out sometimes, it's still better to have it than have not.

@Bilge I'm completely blocked on this one. There's no way to get the current column in bash so it's impossible to identify this situation. I tried another (the old) solution but that one breaks linux readline, not cygwin for some reason, so I'm going to drop support for this. Too many issues and I honestly don't have time for that unless I can fix it the right way. And that's simply not possible without side-effects. And people will keep complaining about it.

commented

OK, I just never upgrade :^)