JanDeDobbeleer / oh-my-posh

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

git status not displayed in wsl+bash in mounted windows directories #4351

Closed pacanukeha closed 1 year ago

pacanukeha commented 1 year ago

Code of Conduct

What happened?

I have oh-my-posh installed in Ubuntu 22.04 LTS / windows terminal / WSL from linuxbrew. In git directories within my wsl file system I see "on git: master" in my prompt In git directories mounted from the windows host using the Plan 9 fs the prompt does not detect the presence of the .git directory and doesn't display the git status information It tries to use the windows git.exe program instead of the linux git executable and it isn't on the $PATH

Theme

honukai

What OS are you seeing the problem on?

Windows

Which shell are you using?

bash

Log output

Version: 18.11.0

Shell: bash (5.1.16(1)-release)

Prompt:

# cbeck@notebeck: ~  work  suds  src                                                                                         [Mon 12:11:20 EDT | 16-Oct-2023]➜

Segments:

ConsoleTitle(true)                        -   1 ms
Session(true)                             -   0 ms
Path(true)                                -   1 ms
Git(false)                                -   1 ms
Time(true)                                -   0 ms
Root(false)                               -   0 ms
Python(false)                             -   0 ms
Status(false)                             -   0 ms
Text(true)                                -   0 ms

Run duration: 6.712874ms

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

Config path: /home/linuxbrew/.linuxbrew/opt/oh-my-posh/themes/honukai.omp.json

Logs:

[DEBUG] 12:11:20.834 shell.go:Getenv:392 → NO DATA
[TRACE] 12:11:20.834 shell.go:Getenv(TERM_PROGRAM) - 17.824µs
[DEBUG] 12:11:20.834 shell.go:Getenv:392 → NO DATA
[TRACE] 12:11:20.834 shell.go:Getenv(XDG_CACHE_HOME) - 2.297µs
[TRACE] 12:11:20.834 shell_unix.go:CachePath() - 10.18µs
[DEBUG] 12:11:20.835 shell.go:Getenv:392 → /home/linuxbrew/.linuxbrew/opt/oh-my-posh/themes/honukai.omp.json
[TRACE] 12:11:20.835 shell.go:Getenv(POSH_THEME) - 2.833µs
[DEBUG] 12:11:20.835 shell_unix.go:Platform:77 → ubuntu
[TRACE] 12:11:20.835 shell.go:resolveConfigPath() - 10.625µs
[TRACE] 12:11:20.835 shell.go:Init() - 118.874µs
[TRACE] 12:11:20.835 shell.go:Flags() - 76ns
[TRACE] 12:11:20.835 config.go:loadConfig() - 261.872µs
[TRACE] 12:11:20.835 shell.go:Flags() - 67ns
[DEBUG] 12:11:20.835 shell.go:Getenv:392 → NO DATA
[TRACE] 12:11:20.835 shell.go:Getenv(OMP_CACHE_DISABLED) - 1.899µs
[DEBUG] 12:11:20.835 shell.go:Shell:646 → no shell name provided in flags, trying to detect it
[DEBUG] 12:11:20.835 shell.go:Shell:654 → process name: bash
[TRACE] 12:11:20.835 shell.go:Shell() - 399.797µs
[DEBUG] 12:11:20.835 shell.go:Getenv:392 → 5.1.16(1)-release
[TRACE] 12:11:20.835 shell.go:Getenv(POSH_SHELL_VERSION) - 1.847µs
[DEBUG] 12:11:20.835 debug.go:PrintDebug:22 → Segment: Title
[DEBUG] 12:11:20.835 text.go:Render:70 → Rendering template: {{.UserName}}@{{.HostName}}:{{.PWD}} [{{.Shell}}]
[TRACE] 12:11:20.835 shell_unix.go:Root() - 344ns
[TRACE] 12:11:20.835 shell.go:Shell() - 64ns
[TRACE] 12:11:20.835 shell.go:StatusCodes() - 41ns
[DEBUG] 12:11:20.835 shell_unix.go:IsWsl:35 → true
[TRACE] 12:11:20.835 shell_unix.go:IsWsl() - 4.793µs
[DEBUG] 12:11:20.835 shell.go:TemplateCache:827 → environment: [SHELL=/bin/bash WSL2_GUI_APPS_ENABLED=1 POSH_PID=2912 WSL_DISTRO_NAME=Ubuntu WT_SESSION=009ce367-0509-4605-b655-c76bd06e3f9a portal_dev=172.31.50.137 sgproxy_prod=10.0.0.78 HOMEBREW_PREFIX=/home/linuxbrew/.linuxbrew NAME=notebeck PWD=/home/cbeck/work/suds/src LOGNAME=cbeck MANPATH=/home/linuxbrew/.linuxbrew/share/man: HOME=/home/cbeck LANG=C.UTF-8 WSL_INTEROP=/run/WSL/2911_interop LS_COLORS=ow=35 POSH_SHELL_VERSION=5.1.16(1)-release WAYLAND_DISPLAY=wayland-0 CONDA_PROMPT_MODIFIER=false INFOPATH=/home/linuxbrew/.linuxbrew/share/info: LESSCLOSE=/usr/bin/lesspipe %s %s TERM=xterm-256color LESSOPEN=| /usr/bin/lesspipe %s USER=cbeck HOMEBREW_CELLAR=/home/linuxbrew/.linuxbrew/Cellar DISPLAY=:0 SHLVL=1 HOMEBREW_REPOSITORY=/home/linuxbrew/.linuxbrew/Homebrew sgproxy_dev=10.0.1.159 POSH_THEME=/home/linuxbrew/.linuxbrew/opt/oh-my-posh/themes/honukai.omp.json XDG_RUNTIME_DIR=/mnt/wslg/runtime-dir WSLENV=WT_SESSION::WT_PROFILE_ID portal_prod=172.31.50.111 XDG_DATA_DIRS=/usr/local/share:/usr/share:/var/lib/snapd/desktop PATH=/home/cbeck/.local/bin:/home/cbeck/bin:/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/home/cbeck/.local/bin:/home/cbeck/bin:/home/cbeck/.cargo/bin:/usr/local/go/bin:/home/cbeck/go/bin HOSTTYPE=x86_64 POWERLINE_COMMAND=oh-my-posh PULSE_SERVER=unix:/mnt/wslg/PulseServer WT_PROFILE_ID={51855cb2-8cce-5362-8f54-464b92b32386} OLDPWD=/home/cbeck _=/home/linuxbrew/.linuxbrew/bin/oh-my-posh]
[TRACE] 12:11:20.837 shell.go:GOOS() - 304ns
[DEBUG] 12:11:20.837 shell.go:Pwd:422 → /home/cbeck/work/suds/src
[TRACE] 12:11:20.837 shell.go:Pwd() - 1.706149ms
[TRACE] 12:11:20.837 shell.go:GOOS() - 36ns
[TRACE] 12:11:20.837 shell.go:GOOS() - 36ns
[TRACE] 12:11:20.837 shell.go:GOOS() - 21ns
[TRACE] 12:11:20.837 shell.go:GOOS() - 45ns
[TRACE] 12:11:20.837 shell.go:GOOS() - 21ns
[DEBUG] 12:11:20.837 shell.go:User:557 → cbeck
[TRACE] 12:11:20.837 shell.go:User() - 2.191µs
[DEBUG] 12:11:20.837 shell.go:Host:569 → notebeck
[TRACE] 12:11:20.837 shell.go:Host() - 3.087µs
[TRACE] 12:11:20.837 shell.go:GOOS() - 22ns
[DEBUG] 12:11:20.837 shell_unix.go:Platform:77 → ubuntu
[DEBUG] 12:11:20.837 shell.go:Getenv:392 → 1
[TRACE] 12:11:20.837 shell.go:Getenv(SHLVL) - 1.979µs
[TRACE] 12:11:20.837 shell.go:TemplateCache() - 1.776244ms
[DEBUG] 12:11:20.837 shell.go:Getenv:392 → NO DATA
[TRACE] 12:11:20.837 shell.go:Getenv(POSH_CURSOR_LINE) - 2.858µs
[DEBUG] 12:11:20.837 shell.go:Getenv:392 → NO DATA
[TRACE] 12:11:20.837 shell.go:Getenv(POSH_CURSOR_COLUMN) - 1.516µs
[TRACE] 12:11:20.837 shell.go:Flags() - 40ns
[TRACE] 12:11:20.837 shell.go:Flags() - 23ns
[TRACE] 12:11:20.837 shell.go:Shell() - 59ns
[TRACE] 12:11:20.837 shell.go:Shell() - 23ns
[TRACE] 12:11:20.837 shell.go:Flags() - 101ns
[TRACE] 12:11:20.837 shell.go:Pwd() - 90ns
[TRACE] 12:11:20.837 shell.go:GOOS() - 53ns
[DEBUG] 12:11:20.837 segment.go:SetEnabled:497 → Segment: Git
[DEBUG] 12:11:20.837 shell_unix.go:IsWsl:35 → true
[TRACE] 12:11:20.837 shell_unix.go:IsWsl() - 2.579µs
[TRACE] 12:11:20.837 shell.go:Flags() - 263ns
[DEBUG] 12:11:20.837 shell.go:FileContent:531 ↓
    5.15.90.1-microsoft-standard-WSL2

[TRACE] 12:11:20.837 shell.go:Pwd() - 103ns
[TRACE] 12:11:20.837 shell.go:FileContent(/proc/sys/kernel/osrelease) - 18.51µs
[TRACE] 12:11:20.837 shell_unix.go:IsWsl2() - 25.281µs
[TRACE] 12:11:20.837 shell.go:GOOS() - 59ns
[TRACE] 12:11:20.837 shell.go:Pwd() - 60ns
[DEBUG] 12:11:20.837 segment.go:SetEnabled:497 → Segment: Path
[TRACE] 12:11:20.837 shell.go:Pwd() - 47ns
[TRACE] 12:11:20.837 shell.go:Shell() - 104ns
[TRACE] 12:11:20.837 shell.go:Shell() - 42ns
[TRACE] 12:11:20.838 shell.go:Flags() - 297ns
[TRACE] 12:11:20.838 shell.go:Pwd() - 116ns
[TRACE] 12:11:20.838 shell.go:GOOS() - 57ns
[DEBUG] 12:11:20.838 segment.go:SetEnabled:497 → Segment: Session
[DEBUG] 12:11:20.838 shell.go:Getenv:392 → NO DATA
[TRACE] 12:11:20.838 shell.go:Getenv(SSH_CONNECTION) - 2.711µs
[DEBUG] 12:11:20.838 shell.go:Getenv:392 → NO DATA
[TRACE] 12:11:20.838 shell.go:Getenv(SSH_CLIENT) - 1.379µs
[TRACE] 12:11:20.838 shell.go:TemplateCache() - 525ns
[DEBUG] 12:11:20.838 properties.go:GetBool:22 → mapped_locations_enabled: true
[DEBUG] 12:11:20.838 properties.go:GetString:28 → 
[DEBUG] 12:11:20.838 properties.go:GetString:28 → 
[TRACE] 12:11:20.838 shell.go:GOOS() - 81ns
[DEBUG] 12:11:20.838 properties.go:GetString:28 → ~
[DEBUG] 12:11:20.838 properties.go:GetKeyValueMap:46 → mapped_locations: map[]
[TRACE] 12:11:20.838 shell.go:PathSeparator() - 46ns
[TRACE] 12:11:20.838 shell.go:GOOS() - 31ns
[TRACE] 12:11:20.838 shell.go:GOOS() - 38ns
[TRACE] 12:11:20.838 shell.go:GOOS() - 23ns
[TRACE] 12:11:20.838 shell.go:GOOS() - 24ns
[TRACE] 12:11:20.838 shell.go:PathSeparator() - 29ns
[TRACE] 12:11:20.838 shell.go:PathSeparator() - 28ns
[TRACE] 12:11:20.838 shell.go:GOOS() - 35ns
[TRACE] 12:11:20.838 shell.go:GOOS() - 26ns
[TRACE] 12:11:20.838 shell.go:PathSeparator() - 25ns
[TRACE] 12:11:20.838 shell.go:GOOS() - 23ns
[TRACE] 12:11:20.838 shell.go:GOOS() - 23ns
[TRACE] 12:11:20.838 shell.go:PathSeparator() - 23ns
[TRACE] 12:11:20.838 shell.go:GOOS() - 26ns
[TRACE] 12:11:20.838 shell.go:GOOS() - 25ns
[TRACE] 12:11:20.838 shell.go:PathSeparator() - 26ns
[TRACE] 12:11:20.838 shell.go:PathSeparator() - 25ns
[DEBUG] 12:11:20.838 properties.go:GetString:28 → full
[TRACE] 12:11:20.838 shell.go:PathSeparator() - 27ns
[DEBUG] 12:11:20.838 properties.go:GetStringArray:52 → cycle: []
[DEBUG] 12:11:20.838 properties.go:GetString:28 → NO DATA
[TRACE] 12:11:20.838 shell.go:PathSeparator() - 26ns
[DEBUG] 12:11:20.838 properties.go:GetString:28 →  
[DEBUG] 12:11:20.838 properties.go:GetBool:22 → cycle_folder_separator: false
[DEBUG] 12:11:20.838 properties.go:GetString:28 → %s
[DEBUG] 12:11:20.838 properties.go:GetString:28 → %s
[TRACE] 12:11:20.838 shell.go:PathSeparator() - 36ns
[TRACE] 12:11:20.838 shell.go:Pwd() - 64ns
[DEBUG] 12:11:20.838 shell_unix.go:IsWsl:35 → true
[TRACE] 12:11:20.838 shell_unix.go:IsWsl() - 2.471µs
[DEBUG] 12:11:20.839 shell.go:RunCommand:587 → C:/Users/Christopher Beck/Work/suds/src
[TRACE] 12:11:20.839 shell.go:RunCommand(wslpath -m /home/cbeck/work/suds/src) - 1.222336ms
[TRACE] 12:11:20.839 shell.go:GOOS() - 43ns
[DEBUG] 12:11:20.839 shell.go:RunCommand:587 → C:/Users/Christopher Beck/Work/suds/src
[ERROR] 12:11:20.839 shell.go:CommandPath:611 → exec: "git.exe": executable file not found in $PATH
[TRACE] 12:11:20.839 shell.go:RunCommand(wslpath -m /home/cbeck/work/suds/src) - 495.804µs
[TRACE] 12:11:20.839 shell.go:CommandPath(git.exe) - 25.903µs
[TRACE] 12:11:20.839 shell.go:HasCommand(git.exe) - 27.93µs
[TRACE] 12:11:20.839 shell.go:StackCount() - 102ns
[DEBUG] 12:11:20.839 properties.go:GetBool:22 → native_fallback: false
[TRACE] 12:11:20.839 shell_unix.go:DirIsWritable(/home/cbeck/work/suds/src) - 3.991µs
[TRACE] 12:11:20.839 shell.go:TemplateCache() - 202ns
[DEBUG] 12:11:20.839 text.go:Render:70 → Rendering template: <#E18F62># </><#E18F62>{{ .UserName }}</><#ffffff>@</><#4A9207>{{ .HostName }}</>:
[DEBUG] 12:11:20.839 text.go:Render:70 → Rendering template:  {{ .Path }}
[TRACE] 12:11:20.840 shell.go:TemplateCache() - 204ns
[TRACE] 12:11:20.840 shell.go:Shell() - 252ns
[TRACE] 12:11:20.840 shell.go:TemplateCache() - 276ns
[TRACE] 12:11:20.840 shell.go:Shell() - 119ns
[DEBUG] 12:11:20.840 text.go:Render:70 → Rendering template: plain
[DEBUG] 12:11:20.840 text.go:Render:70 → Rendering template: plain
[DEBUG] 12:11:20.840 text.go:Render:70 → Rendering template: plain
[TRACE] 12:11:20.840 shell.go:Shell() - 65ns
[TRACE] 12:11:20.840 shell.go:Shell() - 38ns
[TRACE] 12:11:20.840 shell.go:Shell() - 26ns
[TRACE] 12:11:20.840 shell.go:Shell() - 23ns
[TRACE] 12:11:20.840 shell.go:Flags() - 51ns
[TRACE] 12:11:20.840 shell.go:Pwd() - 90ns
[TRACE] 12:11:20.840 shell.go:GOOS() - 46ns
[DEBUG] 12:11:20.840 segment.go:SetEnabled:497 → Segment: Time
[DEBUG] 12:11:20.840 properties.go:GetString:28 → Mon 15:04:05 MST | 02-Oct-2006
[TRACE] 12:11:20.840 shell.go:TemplateCache() - 71ns
[DEBUG] 12:11:20.840 text.go:Render:70 → Rendering template: [{{ .CurrentDate | date .Format }}]
[TRACE] 12:11:20.840 shell.go:TemplateCache() - 134ns
[TRACE] 12:11:20.840 shell.go:Shell() - 47ns
[DEBUG] 12:11:20.840 text.go:Render:70 → Rendering template: plain
[DEBUG] 12:11:20.841 shell_unix.go:TerminalWidth:70 → terminal width: 160
[TRACE] 12:11:20.841 shell_unix.go:TerminalWidth() - 563.804µs
[TRACE] 12:11:20.841 shell.go:Shell() - 65ns
[TRACE] 12:11:20.841 shell.go:Shell() - 35ns
[TRACE] 12:11:20.841 shell.go:Shell() - 22ns
[TRACE] 12:11:20.841 shell.go:Shell() - 24ns
[TRACE] 12:11:20.841 shell.go:Flags() - 50ns
[TRACE] 12:11:20.841 shell.go:Pwd() - 96ns
[TRACE] 12:11:20.841 shell.go:GOOS() - 53ns
[DEBUG] 12:11:20.841 segment.go:SetEnabled:497 → Segment: Text
[TRACE] 12:11:20.841 shell.go:TemplateCache() - 177ns
[TRACE] 12:11:20.841 shell.go:Flags() - 38ns
[TRACE] 12:11:20.841 shell.go:Flags() - 227ns
[TRACE] 12:11:20.841 shell.go:Pwd() - 32ns
[TRACE] 12:11:20.841 shell.go:GOOS() - 36ns
[DEBUG] 12:11:20.841 segment.go:SetEnabled:497 → Segment: Root
[TRACE] 12:11:20.841 shell_unix.go:Root() - 283ns
[DEBUG] 12:11:20.841 properties.go:GetString:28 → environment
[TRACE] 12:11:20.841 shell.go:Pwd() - 114ns
[TRACE] 12:11:20.841 shell.go:Flags() - 154ns
[TRACE] 12:11:20.841 shell.go:GOOS() - 48ns
[DEBUG] 12:11:20.841 segment.go:SetEnabled:497 → Segment: Python
[DEBUG] 12:11:20.841 properties.go:GetString:28 → {{ .Code }}
[DEBUG] 12:11:20.841 properties.go:GetStringArray:52 → extensions: [*.py *.ipynb pyproject.toml venv.bak]
[TRACE] 12:11:20.841 shell.go:Pwd() - 99ns
[DEBUG] 12:11:20.841 properties.go:GetStringArray:52 → folders: [.venv venv virtualenv env venv-win pyenv-win]
[TRACE] 12:11:20.841 shell.go:GOOS() - 46ns
[DEBUG] 12:11:20.841 properties.go:GetBool:22 → home_enabled: false
[TRACE] 12:11:20.841 shell.go:Pwd() - 60ns
[DEBUG] 12:11:20.841 segment.go:SetEnabled:497 → Segment: Status
[DEBUG] 12:11:20.841 properties.go:GetBool:22 → fetch_virtual_env: true
[TRACE] 12:11:20.841 shell.go:StatusCodes() - 81ns
[DEBUG] 12:11:20.841 text.go:Render:70 → Rendering template: {{ .Code }}
[DEBUG] 12:11:20.841 shell.go:CommandPath:608 → /usr/bin/python
[TRACE] 12:11:20.841 shell.go:CommandPath(python) - 15.771µs
[DEBUG] 12:11:20.841 shell.go:HasFilesInDir:472 → false
[TRACE] 12:11:20.841 shell.go:HasFilesInDir(pyvenv.cfg) - 13.476µs
[DEBUG] 12:11:20.841 shell.go:HasFilesInDir:472 → false
[TRACE] 12:11:20.841 shell.go:HasFilesInDir(pyvenv.cfg) - 3.13µs
[DEBUG] 12:11:20.841 shell.go:Getenv:392 → NO DATA
[TRACE] 12:11:20.841 shell.go:Getenv(VIRTUAL_ENV) - 8.382µs
[DEBUG] 12:11:20.841 shell.go:Getenv:392 → NO DATA
[TRACE] 12:11:20.841 shell.go:Getenv(CONDA_ENV_PATH) - 1.413µs
[DEBUG] 12:11:20.841 shell.go:Getenv:392 → NO DATA
[TRACE] 12:11:20.841 shell.go:Getenv(CONDA_DEFAULT_ENV) - 1.334µs
[TRACE] 12:11:20.841 shell.go:TemplateCache() - 148ns
[DEBUG] 12:11:20.841 properties.go:GetBool:22 → always_enabled: false
[DEBUG] 12:11:20.841 text.go:Render:70 → Rendering template: ➜
[TRACE] 12:11:20.841 shell.go:Shell() - 61ns
[DEBUG] 12:11:20.841 shell.go:Getenv:392 → NO DATA
[TRACE] 12:11:20.841 shell.go:Getenv(TERM_PROGRAM) - 4.353µs
[DEBUG] 12:11:20.841 text.go:Render:70 → Rendering template: plain
[DEBUG] 12:11:20.841 text.go:Render:70 → Rendering template: plain
[DEBUG] 12:11:20.841 text.go:Render:70 → Rendering template: plain
[DEBUG] 12:11:20.841 text.go:Render:70 → Rendering template: plain
[TRACE] 12:11:20.841 shell.go:Shell() - 60ns
[TRACE] 12:11:20.841 shell.go:Shell() - 24ns
[TRACE] 12:11:20.841 shell.go:Flags() - 52ns
[TRACE] 12:11:20.841 shell.go:Shell() - 25ns[TRACE] 12:11:20.840 shell.go:TemplateCache() - 71ns
[DEBUG] 12:11:20.840 text.go:Render:70 → Rendering template: [{{ .CurrentDate | date .Format }}]
[TRACE] 12:11:20.840 shell.go:TemplateCache() - 134ns
[TRACE] 12:11:20.840 shell.go:Shell() - 47ns
[DEBUG] 12:11:20.840 text.go:Render:70 → Rendering template: plain
[DEBUG] 12:11:20.841 shell_unix.go:TerminalWidth:70 → terminal width: 160
[TRACE] 12:11:20.841 shell_unix.go:TerminalWidth() - 563.804µs
[TRACE] 12:11:20.841 shell.go:Shell() - 65ns
[TRACE] 12:11:20.841 shell.go:Shell() - 35ns
[TRACE] 12:11:20.841 shell.go:Shell() - 22ns
[TRACE] 12:11:20.841 shell.go:Shell() - 24ns
[TRACE] 12:11:20.841 shell.go:Flags() - 50ns
[TRACE] 12:11:20.841 shell.go:Pwd() - 96ns
[TRACE] 12:11:20.841 shell.go:GOOS() - 53ns
[DEBUG] 12:11:20.841 segment.go:SetEnabled:497 → Segment: Text
[TRACE] 12:11:20.841 shell.go:TemplateCache() - 177ns
[TRACE] 12:11:20.841 shell.go:Flags() - 38ns
[TRACE] 12:11:20.841 shell.go:Flags() - 227ns
[TRACE] 12:11:20.841 shell.go:Pwd() - 32ns
[TRACE] 12:11:20.841 shell.go:GOOS() - 36ns
[DEBUG] 12:11:20.841 segment.go:SetEnabled:497 → Segment: Root
[TRACE] 12:11:20.841 shell_unix.go:Root() - 283ns
[DEBUG] 12:11:20.841 properties.go:GetString:28 → environment
[TRACE] 12:11:20.841 shell.go:Pwd() - 114ns
[TRACE] 12:11:20.841 shell.go:Flags() - 154ns
[TRACE] 12:11:20.841 shell.go:GOOS() - 48ns
[DEBUG] 12:11:20.841 segment.go:SetEnabled:497 → Segment: Python
[DEBUG] 12:11:20.841 properties.go:GetString:28 → {{ .Code }}
[DEBUG] 12:11:20.841 properties.go:GetStringArray:52 → extensions: [*.py *.ipynb pyproject.toml venv.bak]
[TRACE] 12:11:20.841 shell.go:Pwd() - 99ns
[DEBUG] 12:11:20.841 properties.go:GetStringArray:52 → folders: [.venv venv virtualenv env venv-win pyenv-win]
[TRACE] 12:11:20.841 shell.go:GOOS() - 46ns
[DEBUG] 12:11:20.841 properties.go:GetBool:22 → home_enabled: false
[TRACE] 12:11:20.841 shell.go:Pwd() - 60ns
[DEBUG] 12:11:20.841 segment.go:SetEnabled:497 → Segment: Status
[DEBUG] 12:11:20.841 properties.go:GetBool:22 → fetch_virtual_env: true
[TRACE] 12:11:20.841 shell.go:StatusCodes() - 81ns
[DEBUG] 12:11:20.841 text.go:Render:70 → Rendering template: {{ .Code }}
[DEBUG] 12:11:20.841 shell.go:CommandPath:608 → /usr/bin/python
[TRACE] 12:11:20.841 shell.go:CommandPath(python) - 15.771µs
[DEBUG] 12:11:20.841 shell.go:HasFilesInDir:472 → false
[TRACE] 12:11:20.841 shell.go:HasFilesInDir(pyvenv.cfg) - 13.476µs
[DEBUG] 12:11:20.841 shell.go:HasFilesInDir:472 → false
[TRACE] 12:11:20.841 shell.go:HasFilesInDir(pyvenv.cfg) - 3.13µs
[DEBUG] 12:11:20.841 shell.go:Getenv:392 → NO DATA
[TRACE] 12:11:20.841 shell.go:Getenv(VIRTUAL_ENV) - 8.382µs
[DEBUG] 12:11:20.841 shell.go:Getenv:392 → NO DATA
[TRACE] 12:11:20.841 shell.go:Getenv(CONDA_ENV_PATH) - 1.413µs
[DEBUG] 12:11:20.841 shell.go:Getenv:392 → NO DATA
[TRACE] 12:11:20.841 shell.go:Getenv(CONDA_DEFAULT_ENV) - 1.334µs
[TRACE] 12:11:20.841 shell.go:TemplateCache() - 148ns
[DEBUG] 12:11:20.841 properties.go:GetBool:22 → always_enabled: false
[DEBUG] 12:11:20.841 text.go:Render:70 → Rendering template: ➜
[TRACE] 12:11:20.841 shell.go:Shell() - 61ns
[DEBUG] 12:11:20.841 shell.go:Getenv:392 → NO DATA
[TRACE] 12:11:20.841 shell.go:Getenv(TERM_PROGRAM) - 4.353µs
[DEBUG] 12:11:20.841 text.go:Render:70 → Rendering template: plain
[DEBUG] 12:11:20.841 text.go:Render:70 → Rendering template: plain
[DEBUG] 12:11:20.841 text.go:Render:70 → Rendering template: plain
[DEBUG] 12:11:20.841 text.go:Render:70 → Rendering template: plain
[TRACE] 12:11:20.841 shell.go:Shell() - 60ns
[TRACE] 12:11:20.841 shell.go:Shell() - 24ns
[TRACE] 12:11:20.841 shell.go:Flags() - 52ns
[TRACE] 12:11:20.841 shell.go:Shell() - 25ns
[TRACE] 12:11:20.841 shell.go:Shell() - 40ns
[DEBUG] 12:11:20.841 shell.go:Getenv:392 → NO DATA
[TRACE] 12:11:20.841 shell.go:Getenv(XDG_CACHE_HOME) - 2.252µs
[TRACE] 12:11:20.841 shell_unix.go:CachePath() - 9.877µs
[TRACE] 12:11:20.841 shell.go:Flags() - 55ns
JanDeDobbeleer commented 1 year ago

@pacanukeha yes, this by design as the native git in WSL doesn't work well for all git functionality when in the Windows mounted drive. The best thing to do is to have git.exe available, alternatively set native_fallback to true in the git segment's properties.

github-actions[bot] commented 6 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.