Code of Conduct
What happened?
- Clean Window 11
- Install clink
- Install oh-my-posh
- set oh-my-posh theme using clink (whatever)
create python -m venv default
default\Script\activate.bat
prompt do not show the environment, please do not reply that is explained how to fix it, I found the description of the Python segment, and THERE IS NO WAY to let this work.
note: if you run 'set' in the cmd, the enviroment:
PYENV_VIRTUALENV_DISABLE_PROMPT=1
and
VIRTUAL_ENV_PROMPT=default
so, I have read as much as possibile, and try to find a way to change the .json of agnoster or other styles, but there is no way. If I run oh-my-posh debug, I get always Python(false) in the Segments section, NO WAY TO CHANGE IT.
Theme
agnoster.omp.json
What OS are you seeing the problem on?
Windows
Which shell are you using?
cmd
Log output
Version: 24.19.0
Shell: cmd (clink v1.7.10.e3c993)
Prompt:
caruso ~ CONFIG ERROR in cmd at 23:54:38
Segments:
ConsoleTitle(true) - 0 ms
Session(true) - 0 ms
Path(true) - 1 ms
Git(false) - 6 ms
Root(false) - 0 ms
Status(true) - 0 ms
Node(false) - 0 ms
Go(false) - 0 ms
Python(false) - 0 ms
Shell(true) - 0 ms
Time(true) - 0 ms
Run duration: 22.5862ms
Cache path: C:\Users\caruso\AppData\Local\oh-my-posh
Config path: C:\Users\caruso\AppData\Local\Programs\oh-my-posh\themes\agnoster.omp.json
Logs:
[DEBUG] 23:54:38.598 command.go:execute:989 → debug mode enabled
[DEBUG] 23:54:38.612 debug.go:40 → config set using POSH_THEME: C:\Users\caruso\AppData\Local\Programs\oh-my-posh\themes\agnoster.omp.json
[TRACE] 23:54:38.612 debug.go() - 0s
[ERROR] 23:54:38.613 load.go:Load:29 → invalid character '}' looking for beginning of value
[TRACE] 23:54:38.613 load.go:Load() - 1.0457ms
[TRACE] 23:54:38.613 debug.go() - 1.0457ms
[DEBUG] 23:54:38.613 debug.go:52 → plain mode enabled
[TRACE] 23:54:38.613 terminal.go() - 0s
[DEBUG] 23:54:38.613 terminal.go:59 → loading cache file: C:\Users\caruso\AppData\Local\oh-my-posh\omp.cache
[DEBUG] 23:54:38.613 terminal.go:59 → loading cache key: upgrade_check
[TRACE] 23:54:38.613 terminal.go(C:\Users\caruso\AppData\Local\oh-my-posh\omp.cache) - 0s
[TRACE] 23:54:38.613 terminal.go() - 0s
[DEBUG] 23:54:38.613 terminal.go:59 → loading cache file: C:\Users\caruso\AppData\Local\oh-my-posh\omp.cache.69a40d48-9f19-427a-b848-22fa45d3dc77
[DEBUG] 23:54:38.613 terminal.go:59 → loading cache key: prompt_count_cache
[DEBUG] 23:54:38.613 terminal.go:59 → loading cache key: template_cache
[DEBUG] 23:54:38.613 terminal.go:59 → loading cache key: toggle_cache
[TRACE] 23:54:38.613 terminal.go(C:\Users\caruso\AppData\Local\oh-my-posh\omp.cache.69a40d48-9f19-427a-b848-22fa45d3dc77) - 0s
[TRACE] 23:54:38.613 terminal.go:Init() - 0s
[TRACE] 23:54:38.613 terminal.go() - 0s
[DEBUG] 23:54:38.613 terminal.go:Init:67 → C:\Users\caruso
[TRACE] 23:54:38.613 terminal.go:Init() - 0s
[TRACE] 23:54:38.613 debug.go() - 0s
[TRACE] 23:54:38.613 init.go:Init() - 0s
[TRACE] 23:54:38.613 cache.go:loadCache() - 0s
[TRACE] 23:54:38.614 cache.go:loadCache() - 511.1µs
[DEBUG] 23:54:38.614 debug.go:61 → terminal program: Windows Terminal
[DEBUG] 23:54:38.614 debug.go:61 → terminal shell: shell
[DEBUG] 23:54:38.614 config.go:MakeColors:58 → NO DATA
[TRACE] 23:54:38.614 config.go:MakeColors(OMP_CACHE_DISABLED) - 0s
[TRACE] 23:54:38.614 colors_windows.go:GetAccentColor(HKEY_CURRENT_USER\Software\Microsoft\Windows\DWM\ColorizationColor) - 0s
[DEBUG] 23:54:38.614 colors_windows.go:GetAccentColor:19 → ColorizationColor(DWORD): 0x0064112C
[TRACE] 23:54:38.614 colors.go:SetAccentColor() - 0s
[TRACE] 23:54:38.614 colors.go:MakeColors() - 0s
[TRACE] 23:54:38.614 debug.go:PrintDebug() - 0s
[DEBUG] 23:54:38.614 debug.go:PrintDebug:16 → clink v1.7.10.e3c993
[TRACE] 23:54:38.614 debug.go:PrintDebug(POSH_SHELL_VERSION) - 0s
[DEBUG] 23:54:38.614 debug.go:72 → segment: Title
[TRACE] 23:54:38.614 engine.go:getTitleTemplateText({{ .Shell }} in {{ .Folder }}) - 0s
[TRACE] 23:54:38.614 primary.go:needsPrimaryRightPrompt() - 0s
[DEBUG] 23:54:38.614 terminal.go:CursorPosition:583 → 84
[TRACE] 23:54:38.614 terminal.go:CursorPosition(POSH_CURSOR_LINE) - 0s
[DEBUG] 23:54:38.614 terminal.go:CursorPosition:587 → NO DATA
[TRACE] 23:54:38.614 terminal.go:CursorPosition(POSH_CURSOR_COLUMN) - 0s
[TRACE] 23:54:38.614 primary.go:writePrimaryPrompt() - 0s
[TRACE] 23:54:38.614 primary.go:writePrimaryPrompt() - 0s
[TRACE] 23:54:38.614 segment.go:Execute() - 0s
[TRACE] 23:54:38.614 segment.go:Execute() - 0s
[DEBUG] 23:54:38.614 home.go:Home:26 → C:\Users\caruso
[DEBUG] 23:54:38.614 home.go:Home:26 → C:\Users\caruso
[TRACE] 23:54:38.614 terminal.go:DirMatchesOneOf() - 0s
[TRACE] 23:54:38.614 terminal.go:DirMatchesOneOf() - 0s
[DEBUG] 23:54:38.614 segment.go:Execute:110 → segment: Session
[DEBUG] 23:54:38.614 segment.go:Execute:110 → segment: Status
[DEBUG] 23:54:38.614 segment.go:Execute:112 → no toggles found
[DEBUG] 23:54:38.614 segment.go:Execute:112 → no toggles found
[DEBUG] 23:54:38.614 session.go:activeSSHSessi[TRACE] 23:54:38.614 session.go:activeSSHSession(SSH_CONNECTION) - 0s
[DEBUG] 23:54:38.614 status.go:formatStatus:45 → {{ .Code }}
[DEBUG] 23:54:38.614 session.go:activeSSHSession:31 → NO DATA
[TRACE] 23:54:38.614 session.go:activeSSHSession(SSH_CLIENT) - 0s
[TRACE] 23:54:38.614 segment.go:Execute() - 0s
[DEBUG] 23:54:38.614 home.go:Home:26 → C:\Users\caruso
[TRACE] 23:54:38.614 terminal.go:DirMatchesOneOf() - 0s
[DEBUG] 23:54:38.614 segment.go:Execute:110 → segment: Git
[DEBUG] 23:54:38.614 segment.go:Execute:112 → no toggles found
[TRACE] 23:54:38.614 scm.go:hasCommand() - 0s
[TRACE] 23:54:38.614 status.go:formatStatus({{ .Code }}) - 0s
[DEBUG] 23:54:38.614 status.go:Enabled:37 → always_enabled: true
[TRACE] 23:54:38.614 segment.go:Execute() - 0s
[TRACE] 23:54:38.614 segment.go:Execute() - 0s
[DEBUG] 23:54:38.614 home.go:Home:26 → C:\Users\caruso
[TRACE] 23:54:38.614 terminal.go:DirMatchesOneOf() - 0s
[DEBUG] 23:54:38.614 segment.go:Execute:110 → segment: Path
[DEBUG] 23:54:38.614 segment.go:Execute:112 → no toggles found
[DEBUG] 23:54:38.614 path.go:147 → display_cygpath: false
[TRACE] 23:54:38.614 path.go:setPaths() - 0s
[TRACE] 23:54:38.614 path.go:setPaths() - 0s
[TRACE] 23:54:38.614 path.go:setPaths() - 0s
[TRACE] 23:54:38.614 path.go:setPaths() - 0s
[TRACE] 23:54:38.614 path.go:parsePath() - 0s
[DEBUG] 23:54:38.614 home.go:Home:26 → C:\Users\caruso
[TRACE] 23:54:38.614 terminal.go:DirMatchesOneOf() - 0s
[DEBUG] 23:54:38.614 segment.go:Execute:110 → segment: Root
[DEBUG] 23:54:38.614 segment.go:Execute:112 → no toggles found
[TRACE] 23:54:38.614 root.go:Enabled() - 0s
[TRACE] 23:54:38.614 segment.go:string( {{ if .SSHSession }} {{ end }}{{ .UserName }} ) - 511.4µs
[DEBUG] 23:54:38.614 path.go:setMappedLocations:557 → mapped_locations_enabled: true
[DEBUG] 23:54:38.614 path.go:setMappedLocations:558 →
[TRACE] 23:54:38.614 segment.go:resolve(diamond) - 0s
[DEBUG] 23:54:38.614 path.go:setMappedLocations:559 →
[DEBUG] 23:54:38.615 home.go:Home:26 → C:\Users\caruso
[TRACE] 23:54:38.615 clean.go:Clean() - 0s
[TRACE] 23:54:38.615 path.go:normalize() - 0s
[DEBUG] 23:54:38.615 path.go:setMappedLocations:560 → ~
[DEBUG] 23:54:38.615 path.go:setMappedLocations:565 → mapped_locations: map[]
[TRACE] 23:54:38.615 clean.go:Clean() - 0s
[TRACE] 23:54:38.615 path.go:normalize() - 0s
[TRACE] 23:54:38.615 clean.go:Clean() - 0s
[TRACE] 23:54:38.615 path.go:normalize() - 0s
[TRACE] 23:54:38.615 path.go:parsePath() - 0s
[TRACE] 23:54:38.615 path.go:parsePath() - 0s
[TRACE] 23:54:38.615 path.go:parsePath() - 0s
[TRACE] 23:54:38.615 path.go:setStyle() - 0s
[DEBUG] 23:54:38.615 path.go:colorizePath:734 → cycle: []
[DEBUG] 23:54:38.615 path.go:getFolderSeparator:267 → NO DATA
[DEBUG] 23:54:38.615 path.go:getFolderSeparator:269 → \
[DEBUG] 23:54:38.615 path.go:colorizePath:737 → cycle_folder_separator: false
[DEBUG] 23:54:38.615 path.go:colorizePath:738 → %s
[DEBUG] 23:54:38.615 path.go:colorizePath:740 → %s
[DEBUG] 23:54:38.615 path.go:colorizePath:741 → %s
[DEBUG] 23:54:38.615 path.go:colorizePath:742 → %s
[TRACE] 23:54:38.615 path.go:Enabled() - 0s
[TRACE] 23:54:38.615 path.go:Enabled() - 0s
[TRACE] 23:54:38.615 path.go:Enabled() - 0s
[DEBUG] 23:54:38.615 terminal_windows.go:DirIsWritable:216 → not current user or in group
[DEBUG] 23:54:38.615 terminal_windows.go:DirIsWritable:216 → current user is member of S-1-5-32-544
[DEBUG] 23:54:38.615 win32_windows.go:isWriteable:271 ↓
WRITE_DAC
WRITE_OWNER
SYNCHRONIZE
DELETE
READ_CONTROL
[DEBUG] 23:54:38.615 terminal_windows.go:DirIsWritable:216 → user has write access
[TRACE] 23:54:38.615 path.go:Enabled() - 515.9µs
[TRACE] 23:54:38.615 segment.go:string( {{ path .Path .Location }} ) - 0s
[TRACE] 23:54:38.615 segment.go:resolve(powerline) - 0s
[ERROR] 23:54:38.620 terminal.go:HasCommand:323 → exec: "git.exe": executable file not found in %PATH%
[TRACE] 23:54:38.620 terminal.go:HasCommand(git.exe) - 6.1267ms
[TRACE] 23:54:38.620 scm.go:hasCommand(git.exe) - 6.1267ms
[TRACE] 23:54:38.620 segment.go:resolve(powerline) - 0s
[TRACE] 23:54:38.620 segment.go:resolve(powerline) - 0s
[TRACE] 23:54:38.620 segment.go:string( CONFIG ERROR ) - 0s
[TRACE] 23:54:38.620 list.go:FirstMatch(p:red) - 0s
[TRACE] 23:54:38.620 segment.go:resolve(diamond) - 0s
[TRACE] 23:54:38.620 list.go:FirstMatch(p:red) - 0s
[TRACE] 23:54:38.620 engine.go:applyPowerShellBleedPatch() - 0s
[TRACE] 23:54:38.620 engine.go:applyPowerShellBleedPatch() - 0s
[TRACE] 23:54:38.620 segment.go:Execute() - 0s
[TRACE] 23:54:38.620 segment.go:Execute() - 0s
[DEBUG] 23:54:38.620 home.go:Home:26 → C:\Users\caruso
[TRACE] 23:54:38.620 terminal.go:DirMatchesOneOf() - 0s
[DEBUG] 23:54:38.620 segment.go:Execute:110 → segment: Time
[DEBUG] 23:54:38.620 home.go:Home:26 → C:\Users\caruso
[DEBUG] 23:54:38.620 segment.go:Execute:112 → no toggles found
[TRACE] 23:54:38.620 terminal.go:DirMatchesOneOf() - 0s
[TRACE] 23:54:38.620 segment.go:Execute() - 0s
[DEBUG] 23:54:38.620 segment.go:Execute:110 → segment: Node
[DEBUG] 23:54:38.620 segment.go:Execute:112 → no toggles found
[DEBUG] 23:54:38.620 time.go:Enabled:27 → 15:04:05
[TRACE] 23:54:38.620 segment.go:Execute() - 0s
[DEBUG] 23:54:38.620 home.go:Home:26 → C:\Users\caruso
[TRACE] 23:54:38.620 terminal.go:DirMatchesOneOf() - 0s
[DEBUG] 23:54:38.620 segment.go:Execute:110 → segment: Python
[DEBUG] 23:54:38.620 segment.go:Execute:112 → no toggles found
[DEBUG] 23:54:38.620 language.go:Enabled:118 → extensions: [*.js *.ts package.json .nvmrc pnpm-workspace.yaml .pnpmfile.cjs .vue]
[DEBUG] 23:54:38.620 language.go:Enabled:119 → folders: []
[DEBUG] 23:54:38.620 python.go:Enabled:57 → files
[DEBUG] 23:54:38.620 language.go:Enabled:118 → extensions: [*.go go.mod]
[DEBUG] 23:54:38.620 language.go:Enabled:126 → home_enabled: false
[DEBUG] 23:54:38.620 home.go:Home:26 → C:\Users\caruso
[DEBUG] 23:54:38.620 language.go:Enabled:119 → folders: []
[TRACE] 23:54:38.620 terminal.go:DirMatchesOneOf() - 0s
[DEBUG] 23:54:38.620 language.go:Enabled:126 → home_enabled: false
[DEBUG] 23:54:38.620 language.go:Enabled:118 → extensions: [*.py *.ipynb pyproject.toml venv.bak]
[DEBUG] 23:54:38.620 segment.go:Execute:110 → segment: Shell
[DEBUG] 23:54:38.620 home.go:Home:26 → C:\Users\caruso
[DEBUG] 23:54:38.620 language.go:Enabled:119 → folders: [.venv venv virtualenv venv-win pyenv-win]
[DEBUG] 23:54:38.620 segment.go:Execute:112 → no toggles found
[DEBUG] 23:54:38.620 language.go:Enabled:126 → home_enabled: false
[DEBUG] 23:54:38.620 home.go:Home:26 → C:\Users\caruso
[TRACE] 23:54:38.620 shell.go:Enabled() - 0s
[TRACE] 23:54:38.620 segment.go:resolve(plain) - 0s
[TRACE] 23:54:38.620 shell.go:Enabled() - 0s
[TRACE] 23:54:38.620 segment.go:resolve(plain) - 0s
[TRACE] 23:54:38.620 segment.go:resolve(plain) - 0s
[TRACE] 23:54:38.620 segment.go:string(in <p:blue><b>{{ .Name }}</b></> ) - 509.9µs
[TRACE] 23:54:38.620 segment.go:resolve(plain) - 0s
[TRACE] 23:54:38.620 segment.go:string(at <p:blue><b>{{ .CurrentDate | date "15:04:05" }}</b></>) - 0s
[TRACE] 23:54:38.620 segment.go:resolve(plain) - 0s
[TRACE] 23:54:38.620 engine.go:applyPowerShellBleedPatch() - 0s
[TRACE] 23:54:38.620 engine.go:applyPowerShellBleedPatch() - 0s
[TRACE] 23:54:38.620 primary.go:writePrimaryPrompt() - 0s
[TRACE] 23:54:38.620 primary.go:Primary() - 0s
[DEBUG] 23:54:38.620 terminal_windows.go:TerminalWidth:99 → terminal width: 177
[TRACE] 23:54:38.620 engine.go:canWriteRightBlock() - 0s
[TRACE] 23:54:38.620 debug.go:PrintDebug() - 0s
[TRACE] 23:54:38.620 debug.go:PrintDebug() - 0s
Code of Conduct
What happened?
create python -m venv default
prompt do not show the environment, please do not reply that is explained how to fix it, I found the description of the Python segment, and THERE IS NO WAY to let this work.
note: if you run 'set' in the cmd, the enviroment:
PYENV_VIRTUALENV_DISABLE_PROMPT=1
and
VIRTUAL_ENV_PROMPT=default
so, I have read as much as possibile, and try to find a way to change the .json of agnoster or other styles, but there is no way. If I run oh-my-posh debug, I get always Python(false) in the Segments section, NO WAY TO CHANGE IT.
Theme
agnoster.omp.json
What OS are you seeing the problem on?
Windows
Which shell are you using?
cmd
Log output