Incorrect prompt displaying #6106
-
Code of Conduct
What happened?I noticed several days ago that my Oh-My-Posh prompt was no longer displaying properly. At the time I had a customized theme, so I tried using several of the builtin themes, however none of them fix the issue. Next I tried using a different terminal emulator. konsole is the default on this distro (Nobara), but I have WezTerm installed; this did not have any effect. Normally I use my .bashrc file to initialize the prompt, but I have tried initializing it directly using the command line, and Oh-My-Posh commands; nothing seemed to change. Following the instructions in some of the other issues here, I ran ThemeThe default Kali theme. What OS are you seeing the problem on?Linux Which shell are you using?bash Log outputVersion: 24.18.1
Shell: bash (5.2.32(1)-release)
Prompt:
┌──(epi㉿nobara-pc)-[~] 0ms
└─$
Segments:
ConsoleTitle(false) - 0 ms
Session(true) - 2 ms
Python(false) - 0 ms
Path(true) - 0 ms
Git(false) - 0 ms
Executiontime(true) - 0 ms
Status(true) - 0 ms
Text(true) - 0 ms
Run duration: 4.565596ms
Cache path: /home/epi/.cache/oh-my-posh
Config path: /home/epi/.config/omp/omp_themes/kali.omp.json
Logs:
[DEBUG] 18:54:33.877 command.go:execute:989 → debug mode enabled
[DEBUG] 18:54:33.877 debug.go:40 → config set using POSH_THEME: /home/epi/.config/omp/omp_themes/kali.omp.json
[TRACE] 18:54:33.877 debug.go() - 7.474µs
[TRACE] 18:54:33.877 load.go:Load() - 455.101µs
[TRACE] 18:54:33.877 debug.go() - 462.685µs
[DEBUG] 18:54:33.877 debug.go:52 → plain mode enabled
[DEBUG] 18:54:33.877 home.go:Home:16 → /home/epi
[TRACE] 18:54:33.877 terminal.go() - 10.81µs
[DEBUG] 18:54:33.877 terminal.go:59 → loading cache file: /home/epi/.cache/oh-my-posh/omp.cache
[DEBUG] 18:54:33.877 terminal.go:59 → loading cache key: environment_platform
[DEBUG] 18:54:33.877 terminal.go:59 → loading cache key: is_wsl
[DEBUG] 18:54:33.877 terminal.go:59 → loading cache key: upgrade_check
[TRACE] 18:54:33.877 terminal.go(/home/epi/.cache/oh-my-posh/omp.cache) - 43.552µs
[DEBUG] 18:54:33.877 home.go:Home:16 → /home/epi
[TRACE] 18:54:33.877 terminal.go() - 6.983µs
[DEBUG] 18:54:33.877 terminal.go:59 → loading cache file: /home/epi/.cache/oh-my-posh/omp.cache.8339d17f-b37a-419a-9f0c-ce7fb5fab6fe
[ERROR] 18:54:33.877 terminal.go:59 → open /home/epi/.cache/oh-my-posh/omp.cache.8339d17f-b37a-419a-9f0c-ce7fb5fab6fe: no such file or directory
[TRACE] 18:54:33.877 terminal.go(/home/epi/.cache/oh-my-posh/omp.cache.8339d17f-b37a-419a-9f0c-ce7fb5fab6fe) - 5.65µs
[TRACE] 18:54:33.877 terminal.go:Init() - 80ns
[TRACE] 18:54:33.877 terminal.go() - 40ns
[DEBUG] 18:54:33.877 terminal.go:Init:67 → /home/epi
[TRACE] 18:54:33.877 terminal.go:Init() - 6.522µs
[TRACE] 18:54:33.877 debug.go() - 100.488µs
[TRACE] 18:54:33.877 init.go:Init() - 40ns
[TRACE] 18:54:33.877 cache.go:loadCache() - 30ns
[TRACE] 18:54:33.877 cache.go:loadCache() - 190ns
[TRACE] 18:54:33.877 cache.go:loadCache() - 241ns
[TRACE] 18:54:33.877 cache.go:loadCache() - 20ns
[TRACE] 18:54:33.877 cache.go:loadCache() - 20ns
[TRACE] 18:54:33.877 cache.go:loadCache() - 40ns
[DEBUG] 18:54:33.877 cache.go:loadCache:34 → false
[TRACE] 18:54:33.877 cache.go:loadCache() - 1.884µs
[TRACE] 18:54:33.877 cache.go:loadCache() - 20ns
[TRACE] 18:54:33.877 cache.go:loadCache() - 20ns
[DEBUG] 18:54:33.877 home.go:Home:16 → /home/epi
[DEBUG] 18:54:33.877 cache.go:loadCache:48 → false
[TRACE] 18:54:33.877 cache.go:loadCache() - 1.683µs
[TRACE] 18:54:33.877 cache.go:loadCache() - 20ns
[TRACE] 18:54:33.877 cache.go:loadCache() - 20ns
[TRACE] 18:54:33.877 cache.go:loadCache() - 20ns
[DEBUG] 18:54:33.877 cache.go:loadCache:60 → epi
[TRACE] 18:54:33.877 cache.go:loadCache() - 2.064µs
[DEBUG] 18:54:33.877 cache.go:loadCache:61 → nobara-pc
[TRACE] 18:54:33.877 cache.go:loadCache() - 2.625µs
[TRACE] 18:54:33.877 cache.go:loadCache() - 30ns
[DEBUG] 18:54:33.877 cache.go:loadCache:68 → nobara
[DEBUG] 18:54:33.877 cache.go:loadCache:71 → 1
[TRACE] 18:54:33.877 cache.go:loadCache(SHLVL) - 1.733µs
[DEBUG] 18:54:33.877 debug.go:61 → terminal program: Unknown
[DEBUG] 18:54:33.877 debug.go:61 → terminal shell: shell
[DEBUG] 18:54:33.877 config.go:MakeColors:58 → NO DATA
[TRACE] 18:54:33.877 config.go:MakeColors(OMP_CACHE_DISABLED) - 1.894µs
[TRACE] 18:54:33.877 colors.go:MakeColors() - 180ns
[TRACE] 18:54:33.877 debug.go:PrintDebug() - 30ns
[DEBUG] 18:54:33.877 debug.go:PrintDebug:16 → 5.2.32(1)-release
[TRACE] 18:54:33.877 debug.go:PrintDebug(POSH_SHELL_VERSION) - 1.884µs
[DEBUG] 18:54:33.877 debug.go:72 → segment: Title
[TRACE] 18:54:33.877 engine.go:getTitleTemplateText() - 70ns
[TRACE] 18:54:33.877 primary.go:needsPrimaryRightPrompt() - 30ns
[DEBUG] 18:54:33.877 terminal.go:CursorPosition:583 → NO DATA
[TRACE] 18:54:33.877 terminal.go:CursorPosition(POSH_CURSOR_LINE) - 1.754µs
[DEBUG] 18:54:33.877 terminal.go:CursorPosition:587 → NO DATA
[TRACE] 18:54:33.877 terminal.go:CursorPosition(POSH_CURSOR_COLUMN) - 1.202µs
[TRACE] 18:54:33.877 primary.go:writePrimaryPrompt() - 20ns
[TRACE] 18:54:33.877 primary.go:writePrimaryPrompt() - 20ns
[TRACE] 18:54:33.878 segment.go:Execute() - 30ns
[TRACE] 18:54:33.878 segment.go:Execute() - 141ns
[DEBUG] 18:54:33.878 home.go:Home:16 → /home/epi
[DEBUG] 18:54:33.878 home.go:Home:16 → /home/epi
[TRACE] 18:54:33.878 terminal.go:DirMatchesOneOf() - 20ns
[DEBUG] 18:54:33.878 segment.go:Execute:110 → segment: Git
[TRACE] 18:54:33.878 terminal.go:DirMatchesOneOf() - 40ns
[DEBUG] 18:54:33.878 segment.go:Execute:112 → no toggles found
[DEBUG] 18:54:33.878 segment.go:Execute:110 → segment: Python
[DEBUG] 18:54:33.878 segment.go:Execute:112 → no toggles found
[DEBUG] 18:54:33.878 terminal_unix.go:IsWsl2:49 → false
[TRACE] 18:54:33.878 terminal_unix.go:IsWsl2() - 1.924µs
[TRACE] 18:54:33.878 terminal_unix.go:InWSLSharedDrive() - 3.296µs
[TRACE] 18:54:33.878 segment.go:Execute() - 140ns
[DEBUG] 18:54:33.878 python.go:Enabled:57 → environment
[TRACE] 18:54:33.878 scm.go:hasCommand() - 20ns
[DEBUG] 18:54:33.878 home.go:Home:16 → /home/epi
[TRACE] 18:54:33.878 terminal.go:DirMatchesOneOf() - 40ns
[DEBUG] 18:54:33.878 segment.go:Execute:110 → segment: Session
[DEBUG] 18:54:33.878 segment.go:Execute:112 → no toggles found
[DEBUG] 18:54:33.878 language.go:Enabled:118 → extensions: [*.py *.ipynb pyproject.toml venv.bak]
[DEBUG] 18:54:33.878 session.go:activeSSHSession:31 → NO DATA
[DEBUG] 18:54:33.878 terminal.go:HasCommand:323 → /usr/bin/git
[TRACE] 18:54:33.878 session.go:activeSSHSession(SSH_CONNECTION) - 2.204µs
[DEBUG] 18:54:33.878 language.go:Enabled:119 → folders: [.venv venv virtualenv venv-win pyenv-win]
[TRACE] 18:54:33.878 terminal.go:HasCommand(git) - 11.672µs
[DEBUG] 18:54:33.878 session.go:activeSSHSession:31 → NO DATA
[TRACE] 18:54:33.878 scm.go:hasCommand(git) - 13.205µs
[TRACE] 18:54:33.878 session.go:activeSSHSession(SSH_CLIENT) - 1.092µs
[DEBUG] 18:54:33.878 language.go:Enabled:126 → home_enabled: false
[DEBUG] 18:54:33.878 session.go:activeSSHSession:37 → nobara
[DEBUG] 18:54:33.878 home.go:Home:16 → /home/epi
[DEBUG] 18:54:33.878 git.go:shouldDisplay:344 → fetch_bare_info: false
[DEBUG] 18:54:33.878 terminal.go:HasParentFilePath:446 → /home/epi
[TRACE] 18:54:33.878 terminal.go:HasParentFilePath(/home/epi) - 5.51µs
[ERROR] 18:54:33.878 git.go:shouldDisplay:354 → stat .git: no such file or directory
[TRACE] 18:54:33.878 git.go:shouldDisplay(.git) - 17.362µs
[TRACE] 18:54:33.878 segment.go:Execute() - 140ns
[DEBUG] 18:54:33.878 home.go:Home:16 → /home/epi
[TRACE] 18:54:33.878 terminal.go:DirMatchesOneOf() - 40ns
[DEBUG] 18:54:33.878 segment.go:Execute:110 → segment: Path
[DEBUG] 18:54:33.878 segment.go:Execute:112 → no toggles found
[DEBUG] 18:54:33.878 path.go:147 → display_cygpath: false
[TRACE] 18:54:33.878 path.go:setPaths() - 20ns
[TRACE] 18:54:33.878 path.go:setPaths() - 30ns
[TRACE] 18:54:33.878 path.go:setPaths() - 60ns
[TRACE] 18:54:33.878 path.go:setPaths() - 30ns
[TRACE] 18:54:33.878 path.go:parsePath() - 20ns
[DEBUG] 18:54:33.878 path.go:setMappedLocations:557 → mapped_locations_enabled: true
[DEBUG] 18:54:33.878 path.go:setMappedLocations:558 →
[DEBUG] 18:54:33.878 path.go:setMappedLocations:559 →
[DEBUG] 18:54:33.878 home.go:Home:16 → /home/epi
[TRACE] 18:54:33.878 clean.go:Clean() - 30ns
[TRACE] 18:54:33.878 path.go:normalize() - 20ns
[TRACE] 18:54:33.878 path.go:normalize() - 30ns
[DEBUG] 18:54:33.878 path.go:setMappedLocations:560 → ~
[DEBUG] 18:54:33.878 path.go:setMappedLocations:565 → mapped_locations: map[]
[TRACE] 18:54:33.878 clean.go:Clean() - 20ns
[TRACE] 18:54:33.878 path.go:normalize() - 20ns
[TRACE] 18:54:33.878 path.go:normalize() - 20ns
[TRACE] 18:54:33.878 clean.go:Clean() - 20ns
[TRACE] 18:54:33.878 path.go:normalize() - 30ns
[TRACE] 18:54:33.878 path.go:normalize() - 20ns
[TRACE] 18:54:33.878 path.go:parsePath() - 20ns
[TRACE] 18:54:33.878 path.go:parsePath() - 20ns
[TRACE] 18:54:33.878 path.go:parsePath() - 30ns
[TRACE] 18:54:33.878 path.go:setStyle() - 20ns
[DEBUG] 18:54:33.878 path.go:colorizePath:734 → cycle: []
[DEBUG] 18:54:33.878 path.go:getFolderSeparator:267 → NO DATA
[DEBUG] 18:54:33.878 path.go:getFolderSeparator:269 → <#c0c0c0>/</>
[DEBUG] 18:54:33.878 path.go:colorizePath:737 → cycle_folder_separator: false
[DEBUG] 18:54:33.878 path.go:colorizePath:738 → %s
[DEBUG] 18:54:33.878 path.go:colorizePath:740 → %s
[DEBUG] 18:54:33.878 path.go:colorizePath:741 → %s
[DEBUG] 18:54:33.878 path.go:colorizePath:742 → %s
[TRACE] 18:54:33.878 path.go:Enabled() - 20ns
[TRACE] 18:54:33.878 path.go:Enabled() - 20ns
[TRACE] 18:54:33.878 path.go:Enabled() - 40ns
[TRACE] 18:54:33.878 path.go:Enabled(/home/epi) - 3.337µs
[DEBUG] 18:54:33.880 session.go:activeSSHSession:41 → NO DATA
[TRACE] 18:54:33.880 session.go:activeSSHSession(who am i) - 2.082904ms
[TRACE] 18:54:33.880 segment.go:string(<{{ if .Root }}lightBlue{{ else }}green{{ end }}>┌──(</>{{ .UserName }}{{ if .Root }}💀{{ else }}㉿{{ end }}{{ .HostName }}<{{ if .Root }}lightBlue{{ else }}green{{ end }}>)</>) - 627.173µs
[TRACE] 18:54:33.880 list.go:FirstMatch({{ if .Root }}lightRed{{ end }}) - 7.815µs
[TRACE] 18:54:33.880 segment.go:resolve(plain) - 80ns
[TRACE] 18:54:33.880 list.go:FirstMatch({{ if .Root }}lightRed{{ end }}) - 5.982µs
[TRACE] 18:54:33.880 segment.go:resolve(plain) - 50ns
[TRACE] 18:54:33.880 segment.go:string(<{{ if .Root }}lightBlue{{ else }}green{{ end }}>-[</>{{ .Path }}<{{ if .Root }}lightBlue{{ else }}green{{ end }}>]</>) - 18.464µs
[TRACE] 18:54:33.880 segment.go:resolve(plain) - 30ns
[TRACE] 18:54:33.880 segment.go:resolve(plain) - 20ns
[TRACE] 18:54:33.880 engine.go:applyPowerShellBleedPatch() - 80ns
[TRACE] 18:54:33.880 engine.go:applyPowerShellBleedPatch() - 20ns
[TRACE] 18:54:33.880 segment.go:Execute() - 40ns
[DEBUG] 18:54:33.880 home.go:Home:16 → /home/epi
[TRACE] 18:54:33.880 terminal.go:DirMatchesOneOf() - 30ns
[DEBUG] 18:54:33.880 segment.go:Execute:110 → segment: Status
[DEBUG] 18:54:33.880 segment.go:Execute:112 → no toggles found
[TRACE] 18:54:33.880 status.go:Enabled() - 40ns
[DEBUG] 18:54:33.880 status.go:formatStatus:45 → {{ .Code }}
[TRACE] 18:54:33.880 segment.go:Execute() - 130ns
[DEBUG] 18:54:33.880 home.go:Home:16 → /home/epi
[TRACE] 18:54:33.880 terminal.go:DirMatchesOneOf() - 40ns
[DEBUG] 18:54:33.880 segment.go:Execute:110 → segment: Executiontime
[DEBUG] 18:54:33.880 segment.go:Execute:112 → no toggles found
[DEBUG] 18:54:33.880 executiontime.go:Enabled:55 → always_enabled: true
[TRACE] 18:54:33.880 executiontime.go:Enabled() - 50ns
[TRACE] 18:54:33.880 status.go:formatStatus({{ .Code }}) - 21.29µs
[DEBUG] 18:54:33.880 executiontime.go:Enabled:57 → threshold: 500.000000
[DEBUG] 18:54:33.880 status.go:Enabled:37 → always_enabled: true
[DEBUG] 18:54:33.880 executiontime.go:Enabled:61 → round
[TRACE] 18:54:33.880 segment.go:string( {{ .FormattedMs }} ) - 7.434µs
[TRACE] 18:54:33.880 segment.go:resolve(plain) - 80ns
[TRACE] 18:54:33.880 segment.go:string( {{ if gt .Code 0 }}{{else}}{{ end }} ) - 15.579µs
[TRACE] 18:54:33.880 list.go:FirstMatch({{ if gt .Code 0 }}red{{ end }}) - 6.793µs
[TRACE] 18:54:33.880 segment.go:resolve(plain) - 40ns
[TRACE] 18:54:33.880 list.go:FirstMatch({{ if gt .Code 0 }}red{{ end }}) - 5.861µs
[DEBUG] 18:54:33.881 terminal_unix.go:TerminalWidth:85 → terminal width: 150
[TRACE] 18:54:33.881 engine.go:canWriteRightBlock() - 695.881µs
[TRACE] 18:54:33.881 engine.go:applyPowerShellBleedPatch() - 40ns
[TRACE] 18:54:33.881 engine.go:applyPowerShellBleedPatch() - 20ns
[TRACE] 18:54:33.881 segment.go:Execute() - 30ns
[DEBUG] 18:54:33.881 home.go:Home:16 → /home/epi
[TRACE] 18:54:33.881 terminal.go:DirMatchesOneOf() - 20ns
[DEBUG] 18:54:33.881 segment.go:Execute:110 → segment: Text
[DEBUG] 18:54:33.881 segment.go:Execute:112 → no toggles found
[TRACE] 18:54:33.881 segment.go:string(<{{ if .Root }}lightBlue{{ else }}green{{ end }}>└─</>{{ if .Root }}<lightRed>#</>{{ else }}${{ end }} ) - 91.602µs
[TRACE] 18:54:33.881 segment.go:resolve(plain) - 80ns
[TRACE] 18:54:33.881 engine.go:applyPowerShellBleedPatch() - 70ns
[TRACE] 18:54:33.881 engine.go:applyPowerShellBleedPatch() - 20ns
[TRACE] 18:54:33.881 primary.go:Primary() - 30ns
[DEBUG] 18:54:33.881 home.go:Home:16 → /home/epi
[TRACE] 18:54:33.881 debug.go:PrintDebug() - 10.56µs
[TRACE] 18:54:33.881 debug.go:PrintDebug() - 40ns |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
@sakuyarules something is off in your |
Beta Was this translation helpful? Give feedback.
-
Turns out it was starship overriding the config. Removing the starship config file in /etc/profile.d/ fixed the issue. |
Beta Was this translation helpful? Give feedback.
Turns out it was starship overriding the config. Removing the starship config file in /etc/profile.d/ fixed the issue.