JanDeDobbeleer / oh-my-posh

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

Python segment not show at home directory on Windows #4273

Closed roachsinai closed 1 year ago

roachsinai commented 1 year ago

Code of Conduct

What happened?

image

As posted above, virtualenv ins not show on the last second line.

Theme

Sorin but I do some custom:

config of python segment:

        {
          "type": "python",
          "style": "plain",
          "foreground": "#ff3399",
          "template": "\ue235 {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }} "
        },

What OS are you seeing the problem on?

Windows

Which shell are you using?

powershell

Log output

xq@owin ~ ❯❯❯ oh-my-posh debug --plain

Version: 18.3.5

Shell: pwsh (7.3.7)

Prompt:

xq@owin ~ ❯❯❯

Segments:

ConsoleTitle(true)                        -   2 ms
Exit(false)                               -   0 ms
Root(false)                               -   0 ms
Session(true)                             -   0 ms
Path(true)                                -   0 ms
Text(false)                               -   0 ms
Git(false)                                -   5 ms
Python(false)                             -   0 ms
Text(false)                               -   0 ms
Text(true)                                -   0 ms
Text(false)                               -   0 ms

Run duration: 21.8893ms

Cache path: C:\Users\xq\AppData\Local\oh-my-posh

Config path: D:\Softwares\omp\.sorin_custom.json

Logs:

[DEBUG] 16:15:26.306 shell.go:Getenv:389 → NO DATA
[TRACE] 16:15:26.306 shell.go:Getenv(TERM_PROGRAM) - 0s
[DEBUG] 16:15:26.306 shell.go:Getenv:389 → C:\Users\xq\AppData\Local
[TRACE] 16:15:26.306 shell.go:Getenv(LOCALAPPDATA) - 0s
[TRACE] 16:15:26.307 shell_windows.go:CachePath() - 516.8µs
[DEBUG] 16:15:26.307 shell.go:Getenv:389 → D:\Softwares\omp\.sorin_custom.json
[TRACE] 16:15:26.307 shell.go:Getenv(POSH_THEME) - 0s
[DEBUG] 16:15:26.307 shell.go:Shell:629 → no shell name provided in flags, trying to detect it
[DEBUG] 16:15:26.315 shell.go:Shell:637 → process name: pwsh.exe
[TRACE] 16:15:26.315 shell.go:Shell() - 8.2945ms
[TRACE] 16:15:26.315 shell.go:resolveConfigPath() - 8.2945ms
[TRACE] 16:15:26.315 shell.go:Init() - 8.8113ms
[TRACE] 16:15:26.315 shell.go:Flags() - 0s
[TRACE] 16:15:26.316 config.go:loadConfig() - 513.9µs
[TRACE] 16:15:26.316 shell.go:Flags() - 0s
[DEBUG] 16:15:26.316 shell.go:Getenv:389 → NO DATA
[TRACE] 16:15:26.316 shell.go:Getenv(OMP_CACHE_DISABLED) - 0s
[TRACE] 16:15:26.316 shell_windows.go:WindowsRegistryKeyValue(HKEY_CURRENT_USER\Software\Microsoft\Windows\DWM\ColorizationColor) - 0s
[TRACE] 16:15:26.316 shell.go:GOOS() - 0s
[TRACE] 16:15:26.316 shell.go:GOOS() - 0s
[TRACE] 16:15:26.316 shell.go:GOOS() - 0s
[TRACE] 16:15:26.316 shell.go:GOOS() - 0s
[TRACE] 16:15:26.316 shell.go:GOOS() - 0s
[TRACE] 16:15:26.316 shell.go:GOOS() - 0s
[TRACE] 16:15:26.316 shell.go:GOOS() - 0s
[TRACE] 16:15:26.316 shell.go:GOOS() - 0s
[TRACE] 16:15:26.316 shell.go:GOOS() - 0s
[TRACE] 16:15:26.316 shell.go:GOOS() - 0s
[TRACE] 16:15:26.316 shell.go:GOOS() - 0s
[TRACE] 16:15:26.316 shell.go:GOOS() - 0s
[TRACE] 16:15:26.316 shell.go:GOOS() - 0s
[TRACE] 16:15:26.316 shell.go:GOOS() - 0s
[TRACE] 16:15:26.316 shell.go:GOOS() - 0s
[TRACE] 16:15:26.316 shell.go:GOOS() - 0s
[TRACE] 16:15:26.316 shell.go:GOOS() - 0s
[TRACE] 16:15:26.316 shell.go:GOOS() - 0s
[TRACE] 16:15:26.316 shell.go:GOOS() - 0s
[DEBUG] 16:15:26.316 shell_windows.go:WindowsRegistryKeyValue:215 → ColorizationColor(DWORD): 0xC40078D4
[TRACE] 16:15:26.316 shell.go:Shell() - 0s
[DEBUG] 16:15:26.316 shell.go:Getenv:389 → 7.3.7
[TRACE] 16:15:26.316 shell.go:Getenv(POSH_SHELL_VERSION) - 0s
[DEBUG] 16:15:26.316 debug.go:PrintDebug:22 → Segment: Title
[TRACE] 16:15:26.316 shell_windows.go:Root() - 0s
[TRACE] 16:15:26.316 shell.go:Shell() - 0s
[TRACE] 16:15:26.316 shell.go:StatusCodes() - 0s
[TRACE] 16:15:26.316 shell_windows.go:IsWsl() - 0s
[DEBUG] 16:15:26.317 shell.go:TemplateCache:810 → environment: [ALLUSERSPROFILE=C:\ProgramData ANDROID_PLATFORM_TOOLS=C:\Users\xq\AppData\Local\Android\Sdk\platform-tools APPDATA=C:\Users\xq\AppData\Roaming BAZEL_SH=E:\Scoop\apps\msys2\current\usr\bin\bash.exe BAZEL_VC=D:\Program Files \(x86\)\Microsoft Visual Studio\2019\Community\VC BAZEL_VC_FULL_VERSION=14.29.30133 BAZEL_VS=D:\Program Files \(x86\)\Microsoft Visual Studio\2019\Community BAZEL_WINSDK_FULL_VERSION=10.0.19041.0 CMAKE_TOOLCHAIN_FILE=E:/vcpkg/scripts/buildsystems/vcpkg.cmake CommonProgramFiles=C:\Program Files\Common Files CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files CommonProgramW6432=C:\Program Files\Common Files COMPUTERNAME=OWIN ComSpec=C:\WINDOWS\system32\cmd.exe CONDA_DEFAULT_ENV=ins CONDA_EXE=C:\Users\xq\miniconda3\Scripts\conda.exe CONDA_PREFIX=C:\Users\xq\miniconda3\envs\ins CONDA_PROMPT_MODIFIER=(ins)  CONDA_PYTHON_EXE=C:\Users\xq\miniconda3\python.exe CONDA_SHLVL=1 CPOLAR_HOME=C:\Program Files\cpolar\ CUDA_HOME=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1 CUDA_MODULE_LOADING=LAZY CUDA_PATH=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.4 CUDA_PATH_V10_1=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1 CUDA_PATH_V10_2=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.2 CUDA_PATH_V11_1=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.1 CUDA_PATH_V11_4=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.4 DriverData=C:\Windows\System32\Drivers\DriverData GNUPLOT_LIB=C:\Program Files\gnuplot\demo;C:\Program Files\gnuplot\demo\games;C:\Program Files\gnuplot\share HOMEDRIVE=C: HOMEPATH=\Users\xq LOCALAPPDATA=C:\Users\xq\AppData\Local LOGONSERVER=\\OWIN MSMPI_BENCHMARKS=C:\Program Files\Microsoft MPI\Benchmarks\ MSMPI_BIN=C:\Program Files\Microsoft MPI\Bin\ NUMBER_OF_PROCESSORS=16 NVCUDASAMPLES10_1_ROOT=C:\ProgramData\NVIDIA Corporation\CUDA Samples\v10.1 NVCUDASAMPLES10_2_ROOT=C:\ProgramData\NVIDIA Corporation\CUDA Samples\v10.2 NVCUDASAMPLES11_1_ROOT=C:\ProgramData\NVIDIA Corporation\CUDA Samples\v11.1 NVCUDASAMPLES11_4_ROOT=C:\ProgramData\NVIDIA Corporation\CUDA Samples\v11.4 NVCUDASAMPLES_ROOT=C:\ProgramData\NVIDIA Corporation\CUDA Samples\v11.4 NVTOOLSEXT_PATH=C:\Program Files\NVIDIA Corporation\NvToolsExt\ OneDrive=C:\Users\xq\OneDrive OPENH264_LIBRARY=E:\h264\openh264-1.8.0-win64.dll OS=Windows_NT Path=C:\Users\xq\miniconda3\envs\ins;C:\Users\xq\miniconda3\envs\ins\Library\mingw-w64\bin;C:\Users\xq\miniconda3\envs\ins\Library\usr\bin;C:\Users\xq\miniconda3\envs\ins\Library\bin;C:\Users\xq\miniconda3\envs\ins\Scripts;C:\Users\xq\miniconda3\envs\ins\bin;C:\Users\xq\miniconda3\condabin;C:\Program Files\WindowsApps\Microsoft.PowerShell_7.3.7.0_x64__8wekyb3d8bbwe;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.1\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.1\libnvvp;C:\VulkanSDK\1.3.211.0\Bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.4\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.4\libnvvp;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.2\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.2\libnvvp;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\libnvvp;C:\Program Files\Microsoft MPI\Bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files\Git\cmd;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files\mingw-w64\x86_64-8.1.0-win32-seh-rt_v6-rev0\mingw64\bin;C:\Program Files\dotnet;C:\Program Files\TortoiseSVN\bin;C:\Program Files (x86)\Visual Leak Detector\bin\Win32;C:\Program Files (x86)\Visual Leak Detector\bin\Win64;C:\Program Files\NVIDIA Corporation\Nsight Compute 2021.2.1;C:\Program Files\Docker\Docker\resources\bin;C:\ProgramData\DockerDesktop\version-bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;C:\Program Files\Microsoft SQL Server\130\Tools\Binn;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn;C:\Program Files\TortoiseGit\bin;E:\Libs\TensorRT\TensorRT-8.6.1.6\lib;E:\Scoop\apps\mpv\current;E:\Scoop\apps\nodejs\current\bin;E:\Scoop\apps\nodejs\current;C:\Users\xq\miniconda3;C:\Users\xq\miniconda3\Library\mingw-w64\bin;C:\Users\xq\miniconda3\Library\usr\bin;C:\Users\xq\miniconda3\Library\bin;C:\Users\xq\miniconda3\Scripts;E:\Scoop\shims;C:\Users\xq\AppData\Local\Microsoft\WindowsApps;C:\Users\xq\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\xq\Documents\WindowsPowerShell\Scripts;C:\Program Files\CMake\bin;E:\vcpkg;C:\Users\xq\.dotnet\tools;D:\bin;C:\Program Files\gnuplot\bin;C:\Program Files\LLVM\bin;C:\Program Files\cpolar;C:\Program Files\Vim\vim90;E:\Ninja;D:\Softwares\Python\Python310\Scripts;D:\Softwares\Python\Python310;C:\Users\xq\AppData\Local\Programs\Python\Launcher;C:\Users\xq\AppData\Local\Android\Sdk\platform-tools;E:\Libs\ncnn\ncnn\bin;C:\Users\xq\AppData\Local\Microsoft\WindowsApps;E:\bin;C:\Users\xq\AppData\Local\Programs\oh-my-posh\bin PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.CPL POSH_AZURE_ENABLED=False POSH_CURSOR_COLUMN=1 POSH_CURSOR_LINE=4 POSH_GIT_ENABLED=False POSH_INSTALLER=scoop POSH_PID=24300 POSH_SHELL_VERSION=7.3.7 POSH_THEME=D:\Softwares\omp\.sorin_custom.json POSH_THEMES_PATH=C:\Users\xq\AppData\Local\Programs\oh-my-posh\themes POWERLINE_COMMAND=oh-my-posh PROCESSOR_ARCHITECTURE=AMD64 PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 165 Stepping 5, GenuineIntel PROCESSOR_LEVEL=6 PROCESSOR_REVISION=a505 ProgramData=C:\ProgramData ProgramFiles=C:\Program Files ProgramFiles(x86)=C:\Program Files (x86) ProgramW6432=C:\Program Files PSModulePath=C:\Users\xq\Documents\PowerShell\Modules;C:\Program Files\PowerShell\Modules;c:\program files\windowsapps\microsoft.powershell_7.3.7.0_x64__8wekyb3d8bbwe\Modules;C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules PUBLIC=C:\Users\Public SCOOP=E:\Scoop SESSIONNAME=Console SystemDrive=C: SystemRoot=C:\WINDOWS TEMP=C:\Users\xq\AppData\Local\Temp TMP=C:\Users\xq\AppData\Local\Temp USERDOMAIN=owin USERDOMAIN_ROAMINGPROFILE=owin USERNAME=xq USERPROFILE=C:\Users\xq VCPKG_DEFAULT_TRIPLET=x64-windows VISUAL=vim.exe VK_SDK_PATH=C:\VulkanSDK\1.3.211.0 VULKAN_SDK=C:\VulkanSDK\1.3.211.0 windir=C:\WINDOWS WSLENV=WT_SESSION:WT_PROFILE_ID: WT_PROFILE_ID={574e775e-4f2a-5b96-ac1e-a2962a402336} WT_SESSION=bbb0657b-a4c7-4578-a4be-110f9506e90c _CONDA_EXE=C:\Users\xq\miniconda3\Scripts\conda.exe _CONDA_ROOT=C:\Users\xq\miniconda3]
[TRACE] 16:15:26.317 shell.go:GOOS() - 0s
[DEBUG] 16:15:26.317 shell.go:Pwd:419 → C:\Users\xq
[TRACE] 16:15:26.317 shell.go:Pwd() - 0s
[DEBUG] 16:15:26.317 shell_windows.go:56 → C:\Users\xq
[TRACE] 16:15:26.317 shell.go:GOOS() - 0s
[TRACE] 16:15:26.317 shell.go:GOOS() - 0s
[TRACE] 16:15:26.317 shell.go:GOOS() - 0s
[TRACE] 16:15:26.317 shell.go:GOOS() - 0s
[TRACE] 16:15:26.317 shell.go:GOOS() - 0s
[DEBUG] 16:15:26.317 shell.go:User:540 → xq
[TRACE] 16:15:26.317 shell.go:User() - 0s
[DEBUG] 16:15:26.318 shell.go:Host:552 → owin
[TRACE] 16:15:26.318 shell.go:Host() - 513.6µs
[TRACE] 16:15:26.318 shell.go:GOOS() - 0s
[DEBUG] 16:15:26.318 shell.go:Getenv:389 → NO DATA
[TRACE] 16:15:26.318 shell.go:Getenv(SHLVL) - 0s
[TRACE] 16:15:26.318 shell.go:TemplateCache() - 1.5409ms
[DEBUG] 16:15:26.318 shell.go:Getenv:389 → 4
[TRACE] 16:15:26.318 shell.go:Getenv(POSH_CURSOR_LINE) - 0s
[DEBUG] 16:15:26.318 shell.go:Getenv:389 → 1
[TRACE] 16:15:26.318 shell.go:Getenv(POSH_CURSOR_COLUMN) - 0s
[TRACE] 16:15:26.318 shell.go:Flags() - 0s
[TRACE] 16:15:26.318 shell.go:Flags() - 0s
[TRACE] 16:15:26.318 shell.go:Shell() - 0s
[TRACE] 16:15:26.318 shell.go:Flags() - 0s
[TRACE] 16:15:26.318 shell.go:Flags() - 0s
[DEBUG] 16:15:26.318 properties.go:GetString:28 → {{ .Code }}
[TRACE] 16:15:26.318 shell.go:Flags() - 0s
[TRACE] 16:15:26.318 shell.go:Flags() - 0s
[TRACE] 16:15:26.318 shell.go:Pwd() - 0s
[TRACE] 16:15:26.318 shell.go:Pwd() - 0s
[TRACE] 16:15:26.318 shell.go:Pwd() - 0s
[TRACE] 16:15:26.318 shell.go:Flags() - 0s
[TRACE] 16:15:26.318 shell.go:Pwd() - 0s
[DEBUG] 16:15:26.318 properties.go:GetString:28 → environment
[DEBUG] 16:15:26.318 shell_windows.go:56 → C:\Users\xq
[TRACE] 16:15:26.318 shell.go:GOOS() - 0s
[DEBUG] 16:15:26.318 shell_windows.go:56 → C:\Users\xq
[DEBUG] 16:15:26.318 shell_windows.go:56 → C:\Users\xq
[TRACE] 16:15:26.318 shell.go:GOOS() - 0s
[TRACE] 16:15:26.318 shell.go:GOOS() - 0s
[DEBUG] 16:15:26.318 segment.go:SetEnabled:494 → Segment: Exit
[DEBUG] 16:15:26.318 shell_windows.go:56 → C:\Users\xq
[DEBUG] 16:15:26.318 segment.go:SetEnabled:494 → Segment: Text
[TRACE] 16:15:26.318 shell.go:StatusCodes() - 0s
[DEBUG] 16:15:26.318 segment.go:SetEnabled:494 → Segment: Text
[TRACE] 16:15:26.318 shell.go:GOOS() - 0s
[TRACE] 16:15:26.318 shell.go:TemplateCache() - 0s
[TRACE] 16:15:26.318 shell.go:TemplateCache() - 0s
[DEBUG] 16:15:26.318 segment.go:SetEnabled:494 → Segment: Python
[TRACE] 16:15:26.318 shell.go:Flags() - 0s
[TRACE] 16:15:26.318 shell.go:Pwd() - 0s
[TRACE] 16:15:26.318 shell.go:Flags() - 0s
[TRACE] 16:15:26.318 shell.go:Pwd() - 0s
[TRACE] 16:15:26.319 shell.go:Flags() - 0s
[TRACE] 16:15:26.319 shell.go:Pwd() - 0s
[DEBUG] 16:15:26.319 shell_windows.go:56 → C:\Users\xq
[TRACE] 16:15:26.319 shell.go:GOOS() - 0s
[DEBUG] 16:15:26.319 segment.go:SetEnabled:494 → Segment: Session
[DEBUG] 16:15:26.319 shell.go:Getenv:389 → NO DATA
[TRACE] 16:15:26.319 shell.go:Getenv(SSH_CONNECTION) - 0s
[DEBUG] 16:15:26.319 shell.go:Getenv:389 → NO DATA
[DEBUG] 16:15:26.319 shell_windows.go:56 → C:\Users\xq
[TRACE] 16:15:26.319 shell.go:GOOS() - 0s
[DEBUG] 16:15:26.319 shell_windows.go:56 → C:\Users\xq
[DEBUG] 16:15:26.319 properties.go:GetStringArray:52 → folders: [.venv venv virtualenv env venv-win pyenv-win]
[TRACE] 16:15:26.319 shell.go:Flags() - 0s
[TRACE] 16:15:26.319 shell.go:GOOS() - 0s
[DEBUG] 16:15:26.319 properties.go:GetBool:22 → home_enabled: false
[TRACE] 16:15:26.319 shell.go:Pwd() - 0s
[TRACE] 16:15:26.319 shell.go:TemplateCache() - 0s
[DEBUG] 16:15:26.319 segment.go:SetEnabled:494 → Segment: Git
[TRACE] 16:15:26.319 shell.go:Pwd() - 0s
[DEBUG] 16:15:26.319 shell_windows.go:56 → C:\Users\xq
[DEBUG] 16:15:26.319 shell_windows.go:56 → C:\Users\xq
[TRACE] 16:15:26.319 shell.go:GOOS() - 0s
[TRACE] 16:15:26.319 shell.go:GOOS() - 0s
[DEBUG] 16:15:26.319 shell_windows.go:56 → C:\Users\xq
[DEBUG] 16:15:26.319 segment.go:SetEnabled:494 → Segment: Path
[TRACE] 16:15:26.319 shell.go:GOOS() - 0s
[TRACE] 16:15:26.319 shell.go:Pwd() - 0s
[DEBUG] 16:15:26.319 segment.go:SetEnabled:494 → Segment: Root
[TRACE] 16:15:26.319 shell.go:Shell() - 0s
[TRACE] 16:15:26.319 shell.go:Flags() - 0s
[TRACE] 16:15:26.319 shell_windows.go:Root() - 0s
[DEBUG] 16:15:26.319 properties.go:GetBool:22 → mapped_locations_enabled: true
[DEBUG] 16:15:26.319 properties.go:GetString:28 → 
[DEBUG] 16:15:26.319 properties.go:GetString:28 → 
[DEBUG] 16:15:26.319 shell_windows.go:56 → C:\Users\xq
[TRACE] 16:15:26.319 shell.go:GOOS() - 0s
[TRACE] 16:15:26.319 shell.go:GOOS() - 0s
[DEBUG] 16:15:26.319 properties.go:GetString:28 → ~
[DEBUG] 16:15:26.319 properties.go:GetKeyValueMap:46 → mapped_locations: map[]
[TRACE] 16:15:26.319 shell.go:PathSeparator() - 0s
[TRACE] 16:15:26.319 shell.go:GOOS() - 0s
[TRACE] 16:15:26.319 shell.go:GOOS() - 0s
[TRACE] 16:15:26.319 shell.go:GOOS() - 0s
[TRACE] 16:15:26.319 shell.go:GOOS() - 0s
[TRACE] 16:15:26.319 shell.go:GOOS() - 0s
[TRACE] 16:15:26.319 shell.go:GOOS() - 0s
[TRACE] 16:15:26.319 shell.go:GOOS() - 0s
[TRACE] 16:15:26.319 shell.go:PathSeparator() - 0s
[TRACE] 16:15:26.319 shell.go:PathSeparator() - 0s
[TRACE] 16:15:26.319 shell.go:GOOS() - 0s
[TRACE] 16:15:26.319 shell.go:GOOS() - 0s
[TRACE] 16:15:26.319 shell.go:GOOS() - 0s
[TRACE] 16:15:26.319 shell.go:PathSeparator() - 0s
[TRACE] 16:15:26.319 shell.go:GOOS() - 0s
[TRACE] 16:15:26.319 shell.go:GOOS() - 0s
[TRACE] 16:15:26.319 shell.go:GOOS() - 0s
[TRACE] 16:15:26.319 shell.go:PathSeparator() - 0s
[TRACE] 16:15:26.319 shell.go:GOOS() - 0s
[TRACE] 16:15:26.319 shell.go:GOOS() - 0s
[TRACE] 16:15:26.319 shell.go:GOOS() - 0s
[TRACE] 16:15:26.319 shell.go:PathSeparator() - 0s
[TRACE] 16:15:26.319 shell.go:Pwd() - 0s
[TRACE] 16:15:26.319 shell_windows.go:IsWsl() - 0s
[TRACE] 16:15:26.319 shell.go:StackCount() - 0s
[TRACE] 16:15:26.319 shell.go:TemplateCache() - 0s
[DEBUG] 16:15:26.319 properties.go:GetBool:22 → always_enabled: false
[DEBUG] 16:15:26.319 win32_windows.go:isWriteable:299 → not current user or in group
[DEBUG] 16:15:26.319 win32_windows.go:isWriteable:303 → current user is member of S-1-5-32-544
[DEBUG] 16:15:26.319 win32_windows.go:isWriteable:311 ↓
    WRITE_DAC
    WRITE_OWNER
    SYNCHRONIZE
    DELETE
    READ_CONTROL
[DEBUG] 16:15:26.319 win32_windows.go:isWriteable:313 → user has write access
[TRACE] 16:15:26.319 shell_windows.go:DirIsWritable() - 572µs
[TRACE] 16:15:26.319 shell.go:TemplateCache() - 0s
[DEBUG] 16:15:26.323 shell.go:CommandPath:591 → C:\Program Files\Git\cmd\git.exe
[TRACE] 16:15:26.323 shell.go:CommandPath(git.exe) - 4.7619ms
[TRACE] 16:15:26.323 shell.go:HasCommand(git.exe) - 4.7619ms
[TRACE] 16:15:26.323 shell.go:Pwd() - 0s
[ERROR] 16:15:26.324 shell.go:HasParentFilePath:725 → CreateFile .git: The system cannot find the file specified.
[TRACE] 16:15:26.324 shell.go:HasParentFilePath(.git) - 514.9µs
[DEBUG] 16:15:26.324 properties.go:GetBool:22 → fetch_bare_info: false
[TRACE] 16:15:26.324 shell.go:Shell() - 0s
[TRACE] 16:15:26.324 shell.go:TemplateCache() - 0s
[TRACE] 16:15:26.324 shell.go:Shell() - 0s
[TRACE] 16:15:26.324 shell.go:TemplateCache() - 0s
[TRACE] 16:15:26.324 shell.go:TemplateCache() - 0s
[TRACE] 16:15:26.324 shell.go:TemplateCache() - 0s
[TRACE] 16:15:26.324 shell.go:Shell() - 0s
[TRACE] 16:15:26.324 shell.go:TemplateCache() - 0s
[TRACE] 16:15:26.324 shell.go:TemplateCache() - 0s
[TRACE] 16:15:26.328 shell.go:Shell() - 0s
[TRACE] 16:15:26.328 shell.go:Shell() - 0s
[TRACE] 16:15:26.328 shell.go:Shell() - 0s
[TRACE] 16:15:26.328 shell.go:Flags() - 0s
[TRACE] 16:15:26.328 shell.go:Pwd() - 0s
[DEBUG] 16:15:26.328 shell_windows.go:56 → C:\Users\xq
[TRACE] 16:15:26.328 shell.go:GOOS() - 0s
[DEBUG] 16:15:26.328 segment.go:SetEnabled:494 → Segment: Text
[TRACE] 16:15:26.328 shell.go:TemplateCache() - 0s
[TRACE] 16:15:26.328 shell.go:TemplateCache() - 0s
[TRACE] 16:15:26.328 shell.go:TemplateCache() - 0s
[TRACE] 16:15:26.328 shell.go:Shell() - 0s
[TRACE] 16:15:26.328 shell.go:Shell() - 0s
[TRACE] 16:15:26.328 shell.go:Flags() - 0s
[TRACE] 16:15:26.328 shell.go:Shell() - 0s
[TRACE] 16:15:26.328 shell.go:Shell() - 0s
[DEBUG] 16:15:26.328 shell.go:Getenv:389 → C:\Users\xq\AppData\Local
[TRACE] 16:15:26.328 shell.go:Getenv(LOCALAPPDATA) - 0s
[TRACE] 16:15:26.328 shell_windows.go:CachePath() - 0s
[TRACE] 16:15:26.328 shell.go:Flags() - 0s
roachsinai commented 1 year ago

Original sorin thems get same result.

JanDeDobbeleer commented 1 year ago

@roachsinai it's disabled by default when in the HOME folder. This is also indicated in the docs.

roachsinai commented 1 year ago

Thanks for quick reply! Sorry I didn't read the docs carefully!

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.