JanDeDobbeleer / oh-my-posh

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

Python venv shows full path to env #4709

Closed netvoip closed 8 months ago

netvoip commented 8 months ago

Code of Conduct

What happened?

I use same config on two computers. On one {{ .Venv }} shows only venv name as expected, on the other it's F:\Users\User\Envs\django. Same version of oh-my-posh - 19.11.4. The only difference is envs folder is located not on C: drive.

Theme

powerlevel10k_rainbow and others

What OS are you seeing the problem on?

Windows

Which shell are you using?

powershell

Log output

Version: 19.11.4

Shell: pwsh (7.4.1)

Prompt:

 F:\Users\User\Envs\django  D:\                                                           ✔ 18:44:50
Segments:

ConsoleTitle(true)                         -   0 ms
Python(true)                               -  13 ms
Path(true)                                 -   1 ms
Git(false)                                 -   5 ms
Node(false)                                -   2 ms
Go(false)                                  -   1 ms
Root(false)                                -   0 ms
Executiontime(false)                       -   0 ms
Status(true)                               -   1 ms
Time(true)                                 -   0 ms

Run duration: 22.0329ms

Cache path: F:\Users\User\AppData\Local\oh-my-posh

Config path: F:\Users\User\AppData\Local\Programs\oh-my-posh\themes\_my_powerlevel10k_rainbow.omp.json

Logs:

[DEBUG] 18:44:50.535 shell.go:Getenv:398 → NO DATA
[TRACE] 18:44:50.535 shell.go:Getenv(TERM_PROGRAM) - 0s
[DEBUG] 18:44:50.535 shell.go:Getenv:398 → F:\Users\User\AppData\Local
[TRACE] 18:44:50.535 shell.go:Getenv(LOCALAPPDATA) - 0s
[TRACE] 18:44:50.535 shell_windows.go:CachePath() - 0s
[DEBUG] 18:44:50.535 shell.go:Getenv:398 → F:\Users\User\AppData\Local\Programs\oh-my-posh\themes\_my_powerlevel10k_rainbow.omp.json
[TRACE] 18:44:50.535 shell.go:Getenv(POSH_THEME) - 0s
[DEBUG] 18:44:50.535 shell.go:Shell:663 → no shell name provided in flags, trying to detect it
[DEBUG] 18:44:50.539 shell.go:Shell:671 → process name: pwsh.exe
[TRACE] 18:44:50.539 shell.go:Shell() - 4.374ms
[TRACE] 18:44:50.539 shell.go:resolveConfigPath() - 4.374ms
[TRACE] 18:44:50.539 shell.go:Init() - 4.374ms
[TRACE] 18:44:50.539 shell.go:Flags() - 0s
[TRACE] 18:44:50.540 config.go:loadConfig() - 704.4µs
[TRACE] 18:44:50.540 shell.go:Flags() - 0s
[DEBUG] 18:44:50.540 shell.go:Getenv:398 → NO DATA
[TRACE] 18:44:50.540 shell.go:Getenv(OMP_CACHE_DISABLED) - 0s
[TRACE] 18:44:50.540 shell_windows.go:WindowsRegistryKeyValue(HKEY_CURRENT_USER\Software\Microsoft\Windows\DWM\ColorizationColor) - 0s
[TRACE] 18:44:50.540 shell.go:GOOS() - 0s
[TRACE] 18:44:50.540 shell.go:GOOS() - 0s
[TRACE] 18:44:50.540 shell.go:GOOS() - 0s
[TRACE] 18:44:50.540 shell.go:GOOS() - 0s
[TRACE] 18:44:50.540 shell.go:GOOS() - 0s
[TRACE] 18:44:50.540 shell.go:GOOS() - 0s
[TRACE] 18:44:50.540 shell.go:GOOS() - 0s
[TRACE] 18:44:50.540 shell.go:GOOS() - 0s
[TRACE] 18:44:50.540 shell.go:GOOS() - 0s
[TRACE] 18:44:50.540 shell.go:GOOS() - 0s
[TRACE] 18:44:50.540 shell.go:GOOS() - 0s
[TRACE] 18:44:50.540 shell.go:GOOS() - 0s
[TRACE] 18:44:50.540 shell.go:GOOS() - 0s
[TRACE] 18:44:50.540 shell.go:GOOS() - 0s
[TRACE] 18:44:50.540 shell.go:GOOS() - 0s
[TRACE] 18:44:50.540 shell.go:GOOS() - 0s
[TRACE] 18:44:50.540 shell.go:GOOS() - 0s
[TRACE] 18:44:50.540 shell.go:GOOS() - 0s
[TRACE] 18:44:50.540 shell.go:GOOS() - 0s
[DEBUG] 18:44:50.540 shell_windows.go:WindowsRegistryKeyValue:217 → ColorizationColor(DWORD): 0xC4744DA9
[TRACE] 18:44:50.540 shell.go:Shell() - 0s
[DEBUG] 18:44:50.540 shell.go:Getenv:398 → 7.4.1
[TRACE] 18:44:50.540 shell.go:Getenv(POSH_SHELL_VERSION) - 0s
[DEBUG] 18:44:50.540 debug.go:PrintDebug:22 → Segment: Title
[DEBUG] 18:44:50.540 text.go:Render:70 → Rendering template: PS \{{ .Folder }}
[TRACE] 18:44:50.540 shell_windows.go:Root() - 0s
[TRACE] 18:44:50.540 shell.go:Shell() - 0s
[TRACE] 18:44:50.540 shell.go:StatusCodes() - 0s
[TRACE] 18:44:50.540 shell_windows.go:IsWsl() - 0s
[DEBUG] 18:44:50.540 shell.go:TemplateCache:844 → environment: [omited]
[TRACE] 18:44:50.540 shell.go:GOOS() - 0s
[DEBUG] 18:44:50.540 shell.go:Pwd:428 → D:\
[TRACE] 18:44:50.540 shell.go:Pwd() - 0s
[DEBUG] 18:44:50.540 shell_windows.go:58 → F:\Users\User
[TRACE] 18:44:50.540 shell.go:GOOS() - 0s
[TRACE] 18:44:50.540 shell.go:GOOS() - 0s
[TRACE] 18:44:50.540 shell.go:GOOS() - 0s
[DEBUG] 18:44:50.540 shell.go:User:563 → omited
[TRACE] 18:44:50.540 shell.go:User() - 0s
[DEBUG] 18:44:50.540 shell.go:Host:575 → omited
[TRACE] 18:44:50.540 shell.go:Host() - 0s
[TRACE] 18:44:50.540 shell.go:GOOS() - 0s
[DEBUG] 18:44:50.540 shell.go:Getenv:398 → NO DATA
[TRACE] 18:44:50.540 shell.go:Getenv(SHLVL) - 0s
[TRACE] 18:44:50.540 shell.go:TemplateCache() - 0s
[DEBUG] 18:44:50.540 shell.go:Getenv:398 → 3
[TRACE] 18:44:50.540 shell.go:Getenv(POSH_CURSOR_LINE) - 0s
[DEBUG] 18:44:50.540 shell.go:Getenv:398 → 1
[TRACE] 18:44:50.540 shell.go:Getenv(POSH_CURSOR_COLUMN) - 0s
[TRACE] 18:44:50.540 shell.go:Flags() - 0s
[TRACE] 18:44:50.540 shell.go:Flags() - 0s
[TRACE] 18:44:50.540 shell.go:Shell() - 0s
[TRACE] 18:44:50.540 shell.go:Shell() - 0s
[TRACE] 18:44:50.540 shell.go:Flags() - 0s
[TRACE] 18:44:50.540 shell.go:Pwd() - 0s
[DEBUG] 18:44:50.540 shell_windows.go:58 → F:\Users\User
[TRACE] 18:44:50.540 shell.go:GOOS() - 0s
[DEBUG] 18:44:50.540 segment.go:SetEnabled:518 → Segment: Git
[TRACE] 18:44:50.540 shell.go:Flags() - 0s
[TRACE] 18:44:50.540 shell.go:GOOS() - 0s
[DEBUG] 18:44:50.540 shell.go:Getenv:398 → F:\Users\User\AppData\Local
[TRACE] 18:44:50.540 shell.go:Getenv(LOCALAPPDATA) - 0s
[DEBUG] 18:44:50.540 properties.go:GetString:28 → environment
[TRACE] 18:44:50.540 shell.go:Pwd() - 0s
[DEBUG] 18:44:50.540 shell_windows.go:58 → F:\Users\User
[TRACE] 18:44:50.540 shell.go:GOOS() - 0s
[DEBUG] 18:44:50.540 segment.go:SetEnabled:518 → Segment: Python
[DEBUG] 18:44:50.540 properties.go:GetStringArray:52 → extensions: [*.py *.ipynb pyproject.toml venv.bak]
[DEBUG] 18:44:50.540 properties.go:GetStringArray:52 → folders: [.venv venv virtualenv venv-win pyenv-win]
[DEBUG] 18:44:50.540 properties.go:GetBool:22 → home_enabled: false
[TRACE] 18:44:50.540 shell.go:Pwd() - 0s
[DEBUG] 18:44:50.540 shell_windows.go:58 → F:\Users\User
[DEBUG] 18:44:50.540 properties.go:GetBool:22 → fetch_virtual_env: true
[DEBUG] 18:44:50.540 shell.go:Getenv:398 → F:\Users\User\AppData\Local
[TRACE] 18:44:50.540 shell.go:Getenv(LOCALAPPDATA) - 0s
[TRACE] 18:44:50.542 shell.go:Flags() - 0s
[TRACE] 18:44:50.542 shell.go:Pwd() - 0s
[DEBUG] 18:44:50.542 shell_windows.go:58 → F:\Users\User
[TRACE] 18:44:50.542 shell.go:GOOS() - 0s
[DEBUG] 18:44:50.542 segment.go:SetEnabled:518 → Segment: Path
[TRACE] 18:44:50.542 shell.go:Pwd() - 0s
[TRACE] 18:44:50.542 shell.go:Shell() - 0s
[TRACE] 18:44:50.542 shell.go:Flags() - 0s
[DEBUG] 18:44:50.542 properties.go:GetBool:22 → mapped_locations_enabled: true
[DEBUG] 18:44:50.542 properties.go:GetString:28 → 
[DEBUG] 18:44:50.542 properties.go:GetString:28 → 
[DEBUG] 18:44:50.542 shell_windows.go:58 → F:\Users\User
[TRACE] 18:44:50.542 shell.go:GOOS() - 0s
[TRACE] 18:44:50.542 shell.go:GOOS() - 0s
[DEBUG] 18:44:50.542 properties.go:GetString:28 → ~
[DEBUG] 18:44:50.542 properties.go:GetKeyValueMap:46 → mapped_locations: map[]
[TRACE] 18:44:50.542 shell.go:PathSeparator() - 0s
[TRACE] 18:44:50.542 shell.go:GOOS() - 0s
[TRACE] 18:44:50.542 shell.go:GOOS() - 0s
[TRACE] 18:44:50.542 shell.go:GOOS() - 0s
[TRACE] 18:44:50.542 shell.go:GOOS() - 0s
[TRACE] 18:44:50.542 shell.go:GOOS() - 0s
[TRACE] 18:44:50.542 shell.go:GOOS() - 0s
[TRACE] 18:44:50.542 shell.go:GOOS() - 0s
[TRACE] 18:44:50.542 shell.go:PathSeparator() - 0s
[TRACE] 18:44:50.542 shell.go:PathSeparator() - 0s
[TRACE] 18:44:50.542 shell.go:GOOS() - 0s
[TRACE] 18:44:50.542 shell.go:GOOS() - 0s
[TRACE] 18:44:50.542 shell.go:GOOS() - 0s
[TRACE] 18:44:50.542 shell.go:PathSeparator() - 0s
[TRACE] 18:44:50.542 shell.go:GOOS() - 0s
[TRACE] 18:44:50.542 shell.go:GOOS() - 0s
[TRACE] 18:44:50.542 shell.go:GOOS() - 0s
[TRACE] 18:44:50.542 shell.go:PathSeparator() - 0s
[TRACE] 18:44:50.542 shell.go:GOOS() - 0s
[TRACE] 18:44:50.542 shell.go:GOOS() - 0s
[TRACE] 18:44:50.542 shell.go:GOOS() - 0s
[TRACE] 18:44:50.542 shell.go:PathSeparator() - 0s
[DEBUG] 18:44:50.542 properties.go:GetString:28 → NO DATA
[TRACE] 18:44:50.542 shell.go:PathSeparator() - 0s
[DEBUG] 18:44:50.542 properties.go:GetString:28 → \
[TRACE] 18:44:50.542 shell.go:Pwd() - 0s
[TRACE] 18:44:50.542 shell_windows.go:IsWsl() - 0s
[TRACE] 18:44:50.542 shell.go:StackCount() - 0s
[DEBUG] 18:44:50.542 shell.go:CommandPath:615 → F:\Users\User\Envs\django\Scripts\python.exe
[TRACE] 18:44:50.542 shell.go:CommandPath(python) - 2.1271ms
[DEBUG] 18:44:50.543 shell.go:HasFilesInDir:478 → false
[TRACE] 18:44:50.543 shell.go:HasFilesInDir(pyvenv.cfg) - 520.7µs
[DEBUG] 18:44:50.543 shell.go:HasFilesInDir:478 → true
[TRACE] 18:44:50.543 shell.go:HasFilesInDir(pyvenv.cfg) - 0s
[DEBUG] 18:44:50.543 win32_windows.go:isWriteable:303 → current user is member of S-1-5-32-544
[DEBUG] 18:44:50.543 win32_windows.go:isWriteable:311 ↓
    WRITE_DAC
    WRITE_OWNER
    SYNCHRONIZE
    DELETE
    READ_CONTROL
[DEBUG] 18:44:50.543 win32_windows.go:isWriteable:313 → user has write access
[TRACE] 18:44:50.543 shell_windows.go:DirIsWritable() - 1.0368ms
[TRACE] 18:44:50.543 shell.go:TemplateCache() - 0s
[DEBUG] 18:44:50.543 shell.go:FileContent:537 ↓
    home = F:\Python\Python
    implementation = CPython
    version_info = 3.11.8.final.0
    virtualenv = 20.25.1
    include-system-site-packages = false
    base-prefix = F:\Python\Python
    base-exec-prefix = F:\Python\Python
    base-executable = F:\Python\Python\python.exe
    prompt = F:\Users\User\Envs\django

[TRACE] 18:44:50.543 shell.go:FileContent(F:\Users\User\Envs\django\pyvenv.cfg) - 516.1µs
[DEBUG] 18:44:50.543 properties.go:GetBool:22 → fetch_version: true
[DEBUG] 18:44:50.543 properties.go:GetBool:22 → cache_version: false
[DEBUG] 18:44:50.543 shell.go:CommandPath:608 → F:\Users\User\Envs\django\Scripts\python.exe
[TRACE] 18:44:50.543 shell.go:CommandPath(python) - 0s
[DEBUG] 18:44:50.543 shell.go:Getenv:398 → NO DATA
[TRACE] 18:44:50.543 shell.go:Getenv(PYENV_ROOT) - 0s
[DEBUG] 18:44:50.543 shell.go:CommandPath:608 → F:\Users\User\Envs\django\Scripts\python.exe
[TRACE] 18:44:50.543 shell.go:CommandPath(python) - 0s
[TRACE] 18:44:50.543 shell.go:HasCommand(python) - 0s
[ERROR] 18:44:50.546 shell.go:CommandPath:619 → The system cannot find the file specified.
[TRACE] 18:44:50.546 shell.go:CommandPath(git.exe) - 5.787ms
[TRACE] 18:44:50.546 shell.go:HasCommand(git.exe) - 5.787ms
[DEBUG] 18:44:50.554 shell.go:RunCommand:593 → Python 3.11.8
[TRACE] 18:44:50.554 shell.go:RunCommand(python --version) - 10.8241ms
[DEBUG] 18:44:50.554 properties.go:GetString:28 → https://docs.python.org/release/{{ .Major }}.{{ .Minor }}.{{ .Patch }}/whatsnew/changelog.html#python-{{ .Major }}-{{ .Minor }}-{{ .Patch }}
[DEBUG] 18:44:50.554 text.go:Render:70 → Rendering template: https://docs.python.org/release/{{ .Major }}.{{ .Minor }}.{{ .Patch }}/whatsnew/changelog.html#python-{{ .Major }}-{{ .Minor }}-{{ .Patch }}
[TRACE] 18:44:50.554 shell.go:TemplateCache() - 0s
[TRACE] 18:44:50.554 shell.go:TemplateCache() - 0s
[DEBUG] 18:44:50.554 text.go:Render:70 → Rendering template:  {{ .Path }}
[DEBUG] 18:44:50.554 text.go:Render:70 → Rendering template:  {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ end }}
[TRACE] 18:44:50.554 shell.go:TemplateCache() - 0s
[TRACE] 18:44:50.554 shell.go:Shell() - 0s
[TRACE] 18:44:50.554 shell.go:TemplateCache() - 0s
[TRACE] 18:44:50.554 shell.go:Shell() - 0s
[DEBUG] 18:44:50.554 text.go:Render:70 → Rendering template: powerline
[DEBUG] 18:44:50.554 text.go:Render:70 → Rendering template: powerline
[DEBUG] 18:44:50.554 text.go:Render:70 → Rendering template: powerline
[TRACE] 18:44:50.554 shell.go:Shell() - 0s
[TRACE] 18:44:50.554 shell.go:Shell() - 0s
[TRACE] 18:44:50.554 shell.go:Shell() - 0s
[TRACE] 18:44:50.554 shell.go:Flags() - 0s
[TRACE] 18:44:50.554 shell.go:Flags() - 0s
[TRACE] 18:44:50.554 shell.go:Pwd() - 0s
[TRACE] 18:44:50.554 shell.go:Pwd() - 0s
[TRACE] 18:44:50.554 shell.go:Flags() - 0s
[DEBUG] 18:44:50.554 shell_windows.go:58 → F:\Users\User
[DEBUG] 18:44:50.554 shell_windows.go:58 → F:\Users\User
[TRACE] 18:44:50.554 shell.go:GOOS() - 0s
[TRACE] 18:44:50.554 shell.go:GOOS() - 0s
[DEBUG] 18:44:50.554 segment.go:SetEnabled:518 → Segment: Time
[DEBUG] 18:44:50.554 segment.go:SetEnabled:518 → Segment: Go
[TRACE] 18:44:50.554 shell.go:Pwd() - 0s
[DEBUG] 18:44:50.554 properties.go:GetString:28 → 15:04:05
[DEBUG] 18:44:50.554 properties.go:GetStringArray:52 → folders: []
[TRACE] 18:44:50.554 shell.go:TemplateCache() - 0s
[DEBUG] 18:44:50.554 properties.go:GetBool:22 → home_enabled: false
[TRACE] 18:44:50.554 shell.go:Flags() - 0s
[DEBUG] 18:44:50.554 shell_windows.go:58 → F:\Users\User
[TRACE] 18:44:50.554 shell.go:Pwd() - 0s
[TRACE] 18:44:50.554 shell.go:GOOS() - 0s
[DEBUG] 18:44:50.554 shell_windows.go:58 → F:\Users\User
[TRACE] 18:44:50.554 shell.go:Pwd() - 0s
[DEBUG] 18:44:50.554 segment.go:SetEnabled:518 → Segment: Executiontime
[DEBUG] 18:44:50.554 properties.go:GetString:28 → files
[DEBUG] 18:44:50.554 shell_windows.go:58 → F:\Users\User
[TRACE] 18:44:50.554 shell.go:Pwd() - 0s
[TRACE] 18:44:50.554 shell.go:GOOS() - 0s
[DEBUG] 18:44:50.554 properties.go:GetBool:22 → always_enabled: false
[DEBUG] 18:44:50.554 segment.go:SetEnabled:518 → Segment: Root
[TRACE] 18:44:50.554 shell.go:ExecutionTime() - 0s
[TRACE] 18:44:50.554 shell.go:Flags() - 0s
[DEBUG] 18:44:50.554 properties.go:GetFloat64:34 → threshold: 500.000000
[TRACE] 18:44:50.554 shell.go:Flags() - 0s
[DEBUG] 18:44:50.554 properties.go:GetString:28 → {{ .Code }}
[TRACE] 18:44:50.554 shell.go:Pwd() - 0s
[TRACE] 18:44:50.554 shell.go:Pwd() - 0s
[DEBUG] 18:44:50.554 shell_windows.go:58 → F:\Users\User
[TRACE] 18:44:50.554 shell.go:GOOS() - 0s
[TRACE] 18:44:50.554 shell.go:GOOS() - 0s
[DEBUG] 18:44:50.554 segment.go:SetEnabled:518 → Segment: Node
[DEBUG] 18:44:50.554 segment.go:SetEnabled:518 → Segment: Status
[TRACE] 18:44:50.554 shell_windows.go:Root() - 0s
[TRACE] 18:44:50.554 shell.go:StatusCodes() - 0s
[DEBUG] 18:44:50.554 properties.go:GetStringArray:52 → extensions: [*.js *.ts package.json .nvmrc pnpm-workspace.yaml .pnpmfile.cjs .npmrc .vue]
[DEBUG] 18:44:50.554 text.go:Render:70 → Rendering template: {{ .Code }}
[DEBUG] 18:44:50.554 properties.go:GetStringArray:52 → folders: []
[DEBUG] 18:44:50.554 properties.go:GetBool:22 → home_enabled: false
[TRACE] 18:44:50.554 shell.go:Pwd() - 0s
[DEBUG] 18:44:50.554 shell_windows.go:58 → F:\Users\User
[DEBUG] 18:44:50.554 properties.go:GetString:28 → files
[DEBUG] 18:44:50.554 properties.go:GetBool:22 → fetch_package_manager: false
[TRACE] 18:44:50.554 shell.go:Pwd() - 0s
[TRACE] 18:44:50.556 shell.go:TemplateCache() - 0s
[DEBUG] 18:44:50.556 properties.go:GetBool:22 → always_enabled: true
[TRACE] 18:44:50.556 shell.go:TemplateCache() - 0s
[DEBUG] 18:44:50.556 shell.go:HasFiles:464 → false
[TRACE] 18:44:50.556 shell.go:HasFiles(*.go) - 1.3547ms
[TRACE] 18:44:50.556 shell.go:Pwd() - 0s
[DEBUG] 18:44:50.556 shell.go:HasFiles:464 → false
[TRACE] 18:44:50.556 shell.go:HasFiles(go.mod) - 0s
[DEBUG] 18:44:50.556 shell.go:HasFiles:464 → false
[TRACE] 18:44:50.556 shell.go:HasFiles(*.js) - 1.3547ms
[TRACE] 18:44:50.556 shell.go:Pwd() - 0s
[DEBUG] 18:44:50.556 shell.go:HasFiles:464 → false
[TRACE] 18:44:50.556 shell.go:HasFiles(*.ts) - 0s
[TRACE] 18:44:50.556 shell.go:Pwd() - 0s
[DEBUG] 18:44:50.556 shell.go:HasFiles:464 → false
[TRACE] 18:44:50.556 shell.go:HasFiles(package.json) - 0s
[TRACE] 18:44:50.556 shell.go:Pwd() - 0s
[DEBUG] 18:44:50.557 shell.go:HasFiles:464 → false
[TRACE] 18:44:50.557 shell.go:HasFiles(.nvmrc) - 997.7µs
[TRACE] 18:44:50.557 shell.go:Pwd() - 0s
[DEBUG] 18:44:50.557 shell.go:HasFiles:464 → false
[TRACE] 18:44:50.557 shell.go:HasFiles(pnpm-workspace.yaml) - 0s
[TRACE] 18:44:50.557 shell.go:Pwd() - 0s
[DEBUG] 18:44:50.557 shell.go:HasFiles:464 → false
[TRACE] 18:44:50.557 shell.go:HasFiles(.pnpmfile.cjs) - 0s
[TRACE] 18:44:50.557 shell.go:Pwd() - 0s
[DEBUG] 18:44:50.557 shell.go:HasFiles:464 → false
[TRACE] 18:44:50.557 shell.go:HasFiles(.npmrc) - 0s
[TRACE] 18:44:50.557 shell.go:Pwd() - 0s
[DEBUG] 18:44:50.557 shell.go:HasFiles:464 → false
[TRACE] 18:44:50.557 shell.go:HasFiles(.vue) - 0s
[DEBUG] 18:44:50.557 text.go:Render:70 → Rendering template: {{ .CurrentDate | date .Format }}
[DEBUG] 18:44:50.557 text.go:Render:70 → Rendering template:  {{ if gt .Code 0 }}{{ reason .Code }}{{ else }}✔{{ end }}
[TRACE] 18:44:50.557 shell.go:TemplateCache() - 0s
[TRACE] 18:44:50.557 shell.go:Shell() - 0s
[TRACE] 18:44:50.557 shell.go:TemplateCache() - 0s
[TRACE] 18:44:50.557 shell.go:Shell() - 0s
[DEBUG] 18:44:50.557 text.go:Render:70 → Rendering template: powerline
[DEBUG] 18:44:50.557 text.go:Render:70 → Rendering template: powerline
[DEBUG] 18:44:50.557 text.go:Render:70 → Rendering template: powerline
[DEBUG] 18:44:50.557 text.go:Render:70 → Rendering template: powerline
[DEBUG] 18:44:50.557 text.go:Render:70 → Rendering template: {{ if gt .Code 0 }}#cc2222{{ end }}
[TRACE] 18:44:50.557 shell.go:TemplateCache() - 0s
[DEBUG] 18:44:50.557 text.go:Render:70 → Rendering template: powerline
[DEBUG] 18:44:50.557 text.go:Render:70 → Rendering template: plain
[TRACE] 18:44:50.557 shell.go:Shell() - 0s
[TRACE] 18:44:50.557 shell.go:Flags() - 0s
[TRACE] 18:44:50.557 shell.go:Shell() - 0s
[TRACE] 18:44:50.557 shell.go:Shell() - 0s
[DEBUG] 18:44:50.557 shell_windows.go:TerminalWidth:111 → terminal width: 104
[TRACE] 18:44:50.557 shell_windows.go:TerminalWidth() - 0s
[DEBUG] 18:44:50.557 shell.go:Getenv:398 → F:\Users\User\AppData\Local
[TRACE] 18:44:50.557 shell.go:Getenv(LOCALAPPDATA) - 0s
[TRACE] 18:44:50.558 shell_windows.go:CachePath() - 1.0001ms
[TRACE] 18:44:50.558 shell.go:Flags() - 0s
JanDeDobbeleer commented 8 months ago

@netvoip this is according to design. When using pyenv, we will use the value in the prompt field as that's what pyenv also does.

[DEBUG] 18:44:50.543 shell.go:FileContent:537 ↓
    home = F:\Python\Python
    implementation = CPython
    version_info = 3.11.8.final.0
    virtualenv = 20.25.1
    include-system-site-packages = false
    base-prefix = F:\Python\Python
    base-exec-prefix = F:\Python\Python
    base-executable = F:\Python\Python\python.exe
    prompt = F:\Users\User\Envs\django

[TRACE] 18:44:50.543 shell.go:FileContent(F:\Users\User\Envs\django\pyvenv.cfg) - 516.1µs

In this case: prompt = F:\Users\User\Envs\django.

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.