JanDeDobbeleer / oh-my-posh

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

oh-my-posh does not show conda/mamba environment in `$HOME` #4287

Closed 392781 closed 12 months ago

392781 commented 12 months ago

Code of Conduct

What happened?

Conda environment works fine only outside of home directory (~/) as shown below:

Inside $HOME: image

Any directory outside of $HOME: image

Theme

I am using M365Princess with the standard Python powerline found in documentation added to the theme:

{
  "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
  "blocks": [
    {
      "alignment": "left",
      "segments": [
        {
          "foreground": "#ffe4d8",
          "background": "#9A348E",
          "leading_diamond": "\ue0b6",
          "style": "diamond",
          "template": "{{ .UserName }} ",
          "type": "session"
        },
        {
          "foreground": "#ffe4d8",
          "background": "#DA627D",
          "powerline_symbol": "\ue0b0",
          "properties": {
            "style": "folder"
          },
          "style": "powerline",
          "template": " {{ .Path }} ",
          "type": "path"
        },
        {
          "foreground": "#ffe4d8",
          "background": "#FCA17D",
          "powerline_symbol": "\ue0b0",
          "properties": {
            "branch_icon": "\uf418 ",
            "github_icon": "\ue65b",
            "fetch_stash_count": true,
            "fetch_status": false,
            "fetch_upstream_icon": true
          },
          "style": "powerline",
          "template": " \u279c ({{ .HEAD }}{{ if gt .StashCount 0 }} \ueb4b {{ .StashCount }}{{ end }}) ",
          "type": "git"
        },
        {
          "foreground": "#ffe4d8",
          "background": "#86BBD8",
          "powerline_symbol": "\ue0b0",
          "style": "powerline",
          "template": " \ue606 {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }} ",
          "type": "python"
        }
      ],
      "type": "prompt"
    }
  ],
  "transient_prompt": {
    "background": "transparent",
    "foreground": "#ffffff",
    "template": "{{ .Shell }}> "
  },
  "final_space": true,
  "version": 2
}

What OS are you seeing the problem on?

Linux

Which shell are you using?

bash

Log output

================================================================
======================= Inside of $HOME ========================
================================================================

Version: 18.9.1

Shell: bash (5.1.16(1)-release)

Prompt:

ronaldas  ~  

Segments:

ConsoleTitle(false)                       -   0 ms
Session(true)                             -   0 ms
Path(true)                                -   0 ms
Git(false)                                -   0 ms
Python(false)                             -   0 ms

Run duration: 3.754759ms

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

Config path: /home/ronaldas/.oh-my-posh/themes/M365Princess.omp.json

Logs:

[DEBUG] 15:57:54.225 shell.go:Getenv:392 → NO DATA
[TRACE] 15:57:54.226 shell.go:Getenv(TERM_PROGRAM) - 29.138µs
[DEBUG] 15:57:54.226 shell.go:Getenv:392 → NO DATA
[TRACE] 15:57:54.226 shell.go:Getenv(XDG_CACHE_HOME) - 4.012µs
[TRACE] 15:57:54.226 shell_unix.go:CachePath() - 21.559µs
[DEBUG] 15:57:54.226 shell.go:Getenv:392 → /home/ronaldas/.oh-my-posh/themes/M365Princess.omp.json
[TRACE] 15:57:54.226 shell.go:Getenv(POSH_THEME) - 6.649µs
[DEBUG] 15:57:54.226 shell_unix.go:Platform:77 → debian
[TRACE] 15:57:54.226 shell.go:resolveConfigPath() - 21.63µs
[TRACE] 15:57:54.226 shell.go:Init() - 285.967µs
[TRACE] 15:57:54.226 shell.go:Flags() - 86ns
[TRACE] 15:57:54.226 config.go:loadConfig() - 386.729µs
[TRACE] 15:57:54.226 shell.go:Flags() - 73ns
[DEBUG] 15:57:54.226 shell.go:Getenv:392 → NO DATA
[TRACE] 15:57:54.226 shell.go:Getenv(OMP_CACHE_DISABLED) - 4.499µs
[DEBUG] 15:57:54.226 shell.go:Shell:632 → no shell name provided in flags, trying to detect it
[DEBUG] 15:57:54.227 shell.go:Shell:640 → process name: bash
[TRACE] 15:57:54.227 shell.go:Shell() - 791.559µs
[DEBUG] 15:57:54.227 shell.go:Getenv:392 → 5.1.16(1)-release
[TRACE] 15:57:54.227 shell.go:Getenv(POSH_SHELL_VERSION) - 12.193µs
[DEBUG] 15:57:54.227 debug.go:PrintDebug:22 → Segment: Title
[DEBUG] 15:57:54.227 text.go:Render:70 → Rendering template: 
[DEBUG] 15:57:54.227 shell.go:Getenv:392 → NO DATA
[TRACE] 15:57:54.227 shell.go:Getenv(POSH_CURSOR_LINE) - 4.542µs
[DEBUG] 15:57:54.227 shell.go:Getenv:392 → NO DATA
[TRACE] 15:57:54.227 shell.go:Getenv(POSH_CURSOR_COLUMN) - 3.204µs
[TRACE] 15:57:54.227 shell.go:Flags() - 86ns
[TRACE] 15:57:54.227 shell.go:Flags() - 42ns
[TRACE] 15:57:54.227 shell.go:Shell() - 107ns
[TRACE] 15:57:54.227 shell.go:Shell() - 45ns
[TRACE] 15:57:54.227 shell.go:Flags() - 53ns
[TRACE] 15:57:54.227 shell.go:Flags() - 297ns
[DEBUG] 15:57:54.227 properties.go:GetString:28 → environment
[TRACE] 15:57:54.227 shell.go:GOOS() - 151ns
[DEBUG] 15:57:54.227 shell.go:Pwd:422 → /home/ronaldas
[TRACE] 15:57:54.227 shell.go:Pwd() - 29.444µs
[TRACE] 15:57:54.227 shell.go:GOOS() - 56ns
[DEBUG] 15:57:54.227 segment.go:SetEnabled:497 → Segment: Path
[TRACE] 15:57:54.227 shell.go:Pwd() - 193ns
[TRACE] 15:57:54.227 shell.go:Shell() - 119ns
[TRACE] 15:57:54.227 shell.go:Flags() - 47ns
[TRACE] 15:57:54.227 shell.go:Shell() - 70ns
[TRACE] 15:57:54.227 shell.go:Pwd() - 254ns
[TRACE] 15:57:54.227 shell.go:GOOS() - 98ns
[DEBUG] 15:57:54.227 segment.go:SetEnabled:497 → Segment: Session
[DEBUG] 15:57:54.227 shell.go:Getenv:392 → NO DATA
[TRACE] 15:57:54.227 shell.go:Getenv(SSH_CONNECTION) - 4.033µs
[DEBUG] 15:57:54.227 shell.go:Getenv:392 → NO DATA
[TRACE] 15:57:54.227 shell.go:Getenv(SSH_CLIENT) - 3.272µs
[TRACE] 15:57:54.227 shell_unix.go:Root() - 479ns
[TRACE] 15:57:54.227 shell.go:Shell() - 63ns
[TRACE] 15:57:54.227 shell.go:StatusCodes() - 174ns
[DEBUG] 15:57:54.227 shell_unix.go:IsWsl:35 → false
[TRACE] 15:57:54.227 shell_unix.go:IsWsl() - 9.466µs
[DEBUG] 15:57:54.227 properties.go:GetBool:22 → mapped_locations_enabled: true
[DEBUG] 15:57:54.227 properties.go:GetString:28 → 
[DEBUG] 15:57:54.227 shell.go:TemplateCache:813 → environment: [SHELL=/usr/bin/bash SESSION_MANAGER=local/zamorak:@/tmp/.ICE-unix/2726,unix/zamorak:/tmp/.ICE-unix/2726 QT_ACCESSIBILITY=1 COLORTERM=truecolor XDG_CONFIG_DIRS=/etc/xdg/xdg-pop:/etc/xdg SSH_AGENT_LAUNCHER=gnome-keyring XDG_MENU_PREFIX=gnome- GNOME_DESKTOP_SESSION_ID=this-is-deprecated GTK_IM_MODULE=ibus POSH_PID=79997 GNOME_SHELL_SESSION_MODE=pop SSH_AUTH_SOCK=/run/user/1000/keyring/ssh XMODIFIERS=@im=ibus DESKTOP_SESSION=pop GTK_MODULES=gail:atk-bridge PWD=/home/ronaldas LOGNAME=ronaldas XDG_SESSION_DESKTOP=pop XDG_SESSION_TYPE=x11 CONDA_PREFIX=/home/ronaldas/.micromamba MAMBA_ROOT_PREFIX=/home/ronaldas/.micromamba GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1 SYSTEMD_EXEC_PID=2953 XAUTHORITY=/run/user/1000/gdm/Xauthority WINDOWPATH=2 HOME=/home/ronaldas USERNAME=ronaldas LANG=en_US.UTF-8 LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36: XDG_CURRENT_DESKTOP=pop:GNOME POSH_SHELL_VERSION=5.1.16(1)-release VTE_VERSION=6800 CONDA_PROMPT_MODIFIER=(base)  GNOME_TERMINAL_SCREEN=/org/gnome/Terminal/screen/ad962add_9561_41bc_bb0d_2d25c1bbe236 LESSCLOSE=/usr/bin/lesspipe %s %s XDG_SESSION_CLASS=user MAMBA_EXE=/home/ronaldas/.local/bin/micromamba TERM=xterm-256color LESSOPEN=| /usr/bin/lesspipe %s USER=ronaldas GNOME_TERMINAL_SERVICE=:1.979 CONDA_SHLVL=1 DISPLAY=:1 SHLVL=1 QT_IM_MODULE=ibus POSH_THEME=/home/ronaldas/.oh-my-posh/themes/M365Princess.omp.json XDG_RUNTIME_DIR=/run/user/1000 CONDA_DEFAULT_ENV=base XDG_DATA_DIRS=/usr/share/pop:/usr/share/gnome:/home/ronaldas/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share/:/usr/share/ PATH=/home/ronaldas/.micromamba/bin:/home/ronaldas/.micromamba/condabin:/home/ronaldas/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin GDMSESSION=pop DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus POWERLINE_COMMAND=oh-my-posh OLDPWD=/home/ronaldas/.oh-my-posh/themes _=/usr/local/bin/oh-my-posh]
[DEBUG] 15:57:54.227 properties.go:GetString:28 → 
[TRACE] 15:57:54.227 shell.go:GOOS() - 172ns
[DEBUG] 15:57:54.227 properties.go:GetString:28 → ~
[TRACE] 15:57:54.227 shell.go:Pwd() - 183ns
[DEBUG] 15:57:54.227 properties.go:GetKeyValueMap:46 → mapped_locations: map[]
[TRACE] 15:57:54.227 shell.go:GOOS() - 79ns
[TRACE] 15:57:54.227 shell.go:GOOS() - 80ns
[TRACE] 15:57:54.227 shell.go:PathSeparator() - 103ns
[TRACE] 15:57:54.227 shell.go:GOOS() - 79ns
[TRACE] 15:57:54.227 shell.go:GOOS() - 50ns
[TRACE] 15:57:54.227 shell.go:GOOS() - 83ns
[TRACE] 15:57:54.227 shell.go:GOOS() - 74ns
[TRACE] 15:57:54.227 shell.go:GOOS() - 90ns
[TRACE] 15:57:54.227 shell.go:GOOS() - 82ns
[TRACE] 15:57:54.227 shell.go:GOOS() - 53ns
[TRACE] 15:57:54.227 shell.go:GOOS() - 82ns
[TRACE] 15:57:54.227 shell.go:GOOS() - 72ns
[DEBUG] 15:57:54.227 shell.go:User:543 → ronaldas
[TRACE] 15:57:54.227 shell.go:User() - 4.651µs
[DEBUG] 15:57:54.227 shell.go:Host:555 → zamorak
[TRACE] 15:57:54.227 shell.go:Host() - 6.217µs
[TRACE] 15:57:54.227 shell.go:GOOS() - 74ns
[TRACE] 15:57:54.227 shell.go:GOOS() - 94ns
[TRACE] 15:57:54.227 shell.go:GOOS() - 58ns
[DEBUG] 15:57:54.227 shell_unix.go:Platform:77 → debian
[TRACE] 15:57:54.227 shell.go:PathSeparator() - 71ns
[DEBUG] 15:57:54.227 shell.go:Getenv:392 → 1
[TRACE] 15:57:54.227 shell.go:PathSeparator() - 94ns
[TRACE] 15:57:54.227 shell.go:Getenv(SHLVL) - 4.273µs
[TRACE] 15:57:54.227 shell.go:GOOS() - 74ns
[TRACE] 15:57:54.227 shell.go:GOOS() - 73ns
[TRACE] 15:57:54.227 shell.go:TemplateCache() - 158.15µs
[TRACE] 15:57:54.227 shell.go:PathSeparator() - 74ns
[TRACE] 15:57:54.227 shell.go:GOOS() - 49ns
[TRACE] 15:57:54.227 shell.go:GOOS() - 49ns
[TRACE] 15:57:54.227 shell.go:PathSeparator() - 50ns
[TRACE] 15:57:54.227 shell.go:GOOS() - 74ns
[TRACE] 15:57:54.227 shell.go:GOOS() - 74ns
[TRACE] 15:57:54.227 shell.go:PathSeparator() - 161ns
[TRACE] 15:57:54.227 shell.go:Pwd() - 151ns
[DEBUG] 15:57:54.227 shell_unix.go:IsWsl:35 → false
[TRACE] 15:57:54.227 shell_unix.go:IsWsl() - 5.974µs
[TRACE] 15:57:54.227 shell.go:StackCount() - 71ns
[TRACE] 15:57:54.227 shell_unix.go:DirIsWritable(/home/ronaldas) - 5.746µs
[TRACE] 15:57:54.227 shell.go:TemplateCache() - 280ns
[TRACE] 15:57:54.228 shell.go:Flags() - 295ns
[TRACE] 15:57:54.228 shell.go:Pwd() - 291ns
[TRACE] 15:57:54.228 shell.go:GOOS() - 101ns
[DEBUG] 15:57:54.228 segment.go:SetEnabled:497 → Segment: Git
[DEBUG] 15:57:54.228 shell_unix.go:IsWsl:35 → false
[TRACE] 15:57:54.228 shell_unix.go:IsWsl() - 5.801µs
[TRACE] 15:57:54.228 shell_unix.go:IsWsl2() - 10.515µs
[TRACE] 15:57:54.228 shell.go:GOOS() - 74ns
[TRACE] 15:57:54.228 shell.go:Pwd() - 444ns
[TRACE] 15:57:54.228 shell.go:GOOS() - 83ns
[DEBUG] 15:57:54.228 segment.go:SetEnabled:497 → Segment: Python
[DEBUG] 15:57:54.228 properties.go:GetStringArray:52 → extensions: [*.py *.ipynb pyproject.toml venv.bak]
[DEBUG] 15:57:54.228 shell.go:CommandPath:594 → /usr/bin/git
[DEBUG] 15:57:54.228 properties.go:GetStringArray:52 → folders: [.venv venv virtualenv env venv-win pyenv-win]
[TRACE] 15:57:54.228 shell.go:CommandPath(git) - 38.319µs
[DEBUG] 15:57:54.228 properties.go:GetBool:22 → home_enabled: false
[TRACE] 15:57:54.228 shell.go:HasCommand(git) - 43.247µs
[TRACE] 15:57:54.228 shell.go:Pwd() - 128ns
[TRACE] 15:57:54.228 shell.go:Pwd() - 110ns
[ERROR] 15:57:54.228 shell.go:HasParentFilePath:728 → stat .git: no such file or directory
[TRACE] 15:57:54.228 shell.go:HasParentFilePath(.git) - 31.914µs
[DEBUG] 15:57:54.228 properties.go:GetBool:22 → fetch_bare_info: false
[DEBUG] 15:57:54.228 text.go:Render:70 → Rendering template: {{ .UserName }} 
[DEBUG] 15:57:54.228 text.go:Render:70 → Rendering template:  {{ .Path }} 
[TRACE] 15:57:54.229 shell.go:TemplateCache() - 451ns
[TRACE] 15:57:54.229 shell.go:Shell() - 219ns
[TRACE] 15:57:54.229 shell.go:TemplateCache() - 406ns
[TRACE] 15:57:54.229 shell.go:Shell() - 173ns
[DEBUG] 15:57:54.229 text.go:Render:70 → Rendering template: diamond
[DEBUG] 15:57:54.229 text.go:Render:70 → Rendering template: powerline
[DEBUG] 15:57:54.229 text.go:Render:70 → Rendering template: powerline
[DEBUG] 15:57:54.229 text.go:Render:70 → Rendering template: powerline
[TRACE] 15:57:54.229 shell.go:Shell() - 132ns
[TRACE] 15:57:54.229 shell.go:Shell() - 72ns
[TRACE] 15:57:54.229 shell.go:Shell() - 50ns
[TRACE] 15:57:54.229 shell.go:Shell() - 49ns
[DEBUG] 15:57:54.229 shell.go:Getenv:392 → NO DATA
[TRACE] 15:57:54.229 shell.go:Getenv(XDG_CACHE_HOME) - 4.904µs
[TRACE] 15:57:54.229 shell_unix.go:CachePath() - 23.247µs
[TRACE] 15:57:54.229 shell.go:Flags() - 106ns

================================================================
====================== Outside of $HOME ========================
================================================================

Version: 18.9.1

Shell: bash (5.1.16(1)-release)

Prompt:

ronaldas  themes   base 3.10.12  

Segments:

ConsoleTitle(false)                       -   0 ms
Session(true)                             -   0 ms
Path(true)                                -   1 ms
Git(false)                                -   0 ms
Python(true)                              -  10 ms

Run duration: 75.848868ms

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

Config path: /home/ronaldas/.oh-my-posh/themes/M365Princess.omp.json

Logs:

[DEBUG] 15:57:02.194 shell.go:Getenv:392 → NO DATA
[TRACE] 15:57:02.194 shell.go:Getenv(TERM_PROGRAM) - 59.496975ms
[DEBUG] 15:57:02.194 shell.go:Getenv:392 → NO DATA
[TRACE] 15:57:02.194 shell.go:Getenv(XDG_CACHE_HOME) - 14.621µs
[TRACE] 15:57:02.194 shell_unix.go:CachePath() - 69.542µs
[DEBUG] 15:57:02.194 shell.go:Getenv:392 → /home/ronaldas/.oh-my-posh/themes/M365Princess.omp.json
[TRACE] 15:57:02.194 shell.go:Getenv(POSH_THEME) - 19.761µs
[DEBUG] 15:57:02.195 shell_unix.go:Platform:77 → debian
[TRACE] 15:57:02.195 shell.go:resolveConfigPath() - 59.351µs
[TRACE] 15:57:02.195 shell.go:Init() - 60.286674ms
[TRACE] 15:57:02.195 shell.go:Flags() - 152ns
[TRACE] 15:57:02.196 config.go:loadConfig() - 939.944µs
[TRACE] 15:57:02.196 shell.go:Flags() - 126ns
[DEBUG] 15:57:02.196 shell.go:Getenv:392 → NO DATA
[TRACE] 15:57:02.196 shell.go:Getenv(OMP_CACHE_DISABLED) - 8.798µs
[DEBUG] 15:57:02.196 shell.go:Shell:632 → no shell name provided in flags, trying to detect it
[DEBUG] 15:57:02.198 shell.go:Shell:640 → process name: bash
[TRACE] 15:57:02.198 shell.go:Shell() - 2.422804ms
[DEBUG] 15:57:02.198 shell.go:Getenv:392 → 5.1.16(1)-release
[TRACE] 15:57:02.198 shell.go:Getenv(POSH_SHELL_VERSION) - 13.096µs
[DEBUG] 15:57:02.198 debug.go:PrintDebug:22 → Segment: Title
[DEBUG] 15:57:02.198 text.go:Render:70 → Rendering template: 
[DEBUG] 15:57:02.198 shell.go:Getenv:392 → NO DATA
[TRACE] 15:57:02.198 shell.go:Getenv(POSH_CURSOR_LINE) - 24.245µs
[DEBUG] 15:57:02.198 shell.go:Getenv:392 → NO DATA
[TRACE] 15:57:02.198 shell.go:Getenv(POSH_CURSOR_COLUMN) - 8.746µs
[TRACE] 15:57:02.198 shell.go:Flags() - 265ns
[TRACE] 15:57:02.198 shell.go:Flags() - 129ns
[TRACE] 15:57:02.198 shell.go:Shell() - 379ns
[TRACE] 15:57:02.198 shell.go:Shell() - 137ns
[TRACE] 15:57:02.198 shell.go:Flags() - 160ns
[DEBUG] 15:57:02.198 properties.go:GetString:28 → environment
[TRACE] 15:57:02.198 shell.go:Flags() - 1.017µs
[TRACE] 15:57:02.198 shell.go:GOOS() - 291ns
[DEBUG] 15:57:02.198 shell.go:Pwd:422 → /home/ronaldas/.oh-my-posh/themes
[TRACE] 15:57:02.198 shell.go:Pwd() - 67.05µs
[TRACE] 15:57:02.198 shell.go:GOOS() - 125ns
[TRACE] 15:57:02.198 shell.go:Pwd() - 495ns
[DEBUG] 15:57:02.198 segment.go:SetEnabled:497 → Segment: Python
[TRACE] 15:57:02.198 shell.go:GOOS() - 258ns
[DEBUG] 15:57:02.199 segment.go:SetEnabled:497 → Segment: Path
[TRACE] 15:57:02.199 shell.go:Pwd() - 209ns
[DEBUG] 15:57:02.199 properties.go:GetStringArray:52 → extensions: [*.py *.ipynb pyproject.toml venv.bak]
[DEBUG] 15:57:02.199 properties.go:GetStringArray:52 → folders: [.venv venv virtualenv env venv-win pyenv-win]
[TRACE] 15:57:02.199 shell.go:Shell() - 412ns
[DEBUG] 15:57:02.199 properties.go:GetBool:22 → home_enabled: false
[TRACE] 15:57:02.199 shell.go:Shell() - 166ns
[TRACE] 15:57:02.199 shell.go:Pwd() - 541ns
[DEBUG] 15:57:02.199 properties.go:GetBool:22 → fetch_virtual_env: true
[TRACE] 15:57:02.199 shell.go:Flags() - 876ns
[DEBUG] 15:57:02.199 properties.go:GetBool:22 → mapped_locations_enabled: true
[DEBUG] 15:57:02.199 properties.go:GetString:28 → 
[DEBUG] 15:57:02.199 properties.go:GetString:28 → 
[ERROR] 15:57:02.199 shell.go:CommandPath:597 → exec: "python": executable file not found in $PATH
[TRACE] 15:57:02.199 shell.go:GOOS() - 338ns
[TRACE] 15:57:02.199 shell.go:CommandPath(python) - 193.874µs
[TRACE] 15:57:02.199 shell.go:Pwd() - 848ns
[DEBUG] 15:57:02.199 properties.go:GetString:28 → ~
[TRACE] 15:57:02.199 shell.go:GOOS() - 221ns
[DEBUG] 15:57:02.199 properties.go:GetKeyValueMap:46 → mapped_locations: map[]
[DEBUG] 15:57:02.199 segment.go:SetEnabled:497 → Segment: Session
[TRACE] 15:57:02.199 shell.go:PathSeparator() - 343ns
[TRACE] 15:57:02.199 shell.go:GOOS() - 147ns
[DEBUG] 15:57:02.199 shell.go:Getenv:392 → NO DATA
[TRACE] 15:57:02.199 shell.go:GOOS() - 130ns
[TRACE] 15:57:02.199 shell.go:Getenv(SSH_CONNECTION) - 24.175µs
[DEBUG] 15:57:02.199 shell.go:Getenv:392 → NO DATA
[TRACE] 15:57:02.199 shell.go:Getenv(SSH_CLIENT) - 9.901µs
[TRACE] 15:57:02.199 shell_unix.go:Root() - 1.638µs
[TRACE] 15:57:02.199 shell.go:Shell() - 315ns
[TRACE] 15:57:02.199 shell.go:StatusCodes() - 407ns
[DEBUG] 15:57:02.199 shell_unix.go:IsWsl:35 → false
[TRACE] 15:57:02.199 shell.go:GOOS() - 153ns
[TRACE] 15:57:02.199 shell_unix.go:IsWsl() - 15.427µs
[TRACE] 15:57:02.199 shell.go:GOOS() - 190ns
[TRACE] 15:57:02.199 shell.go:PathSeparator() - 177ns
[TRACE] 15:57:02.199 shell.go:PathSeparator() - 189ns
[TRACE] 15:57:02.199 shell.go:GOOS() - 192ns
[TRACE] 15:57:02.199 shell.go:GOOS() - 209ns
[TRACE] 15:57:02.199 shell.go:PathSeparator() - 129ns
[TRACE] 15:57:02.199 shell.go:GOOS() - 195ns
[TRACE] 15:57:02.199 shell.go:GOOS() - 191ns
[TRACE] 15:57:02.199 shell.go:PathSeparator() - 126ns
[TRACE] 15:57:02.199 shell.go:GOOS() - 195ns
[TRACE] 15:57:02.199 shell.go:GOOS() - 128ns
[TRACE] 15:57:02.199 shell.go:PathSeparator() - 123ns
[TRACE] 15:57:02.199 shell.go:PathSeparator() - 195ns
[DEBUG] 15:57:02.199 shell.go:TemplateCache:813 → environment: [SHELL=/usr/bin/bash SESSION_MANAGER=local/zamorak:@/tmp/.ICE-unix/2726,unix/zamorak:/tmp/.ICE-unix/2726 QT_ACCESSIBILITY=1 COLORTERM=truecolor XDG_CONFIG_DIRS=/etc/xdg/xdg-pop:/etc/xdg SSH_AGENT_LAUNCHER=gnome-keyring XDG_MENU_PREFIX=gnome- GNOME_DESKTOP_SESSION_ID=this-is-deprecated GTK_IM_MODULE=ibus POSH_PID=79997 GNOME_SHELL_SESSION_MODE=pop SSH_AUTH_SOCK=/run/user/1000/keyring/ssh XMODIFIERS=@im=ibus DESKTOP_SESSION=pop GTK_MODULES=gail:atk-bridge PWD=/home/ronaldas/.oh-my-posh/themes LOGNAME=ronaldas XDG_SESSION_DESKTOP=pop XDG_SESSION_TYPE=x11 CONDA_PREFIX=/home/ronaldas/.micromamba MAMBA_ROOT_PREFIX=/home/ronaldas/.micromamba GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1 SYSTEMD_EXEC_PID=2953 XAUTHORITY=/run/user/1000/gdm/Xauthority WINDOWPATH=2 HOME=/home/ronaldas USERNAME=ronaldas LANG=en_US.UTF-8 LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36: XDG_CURRENT_DESKTOP=pop:GNOME POSH_SHELL_VERSION=5.1.16(1)-release VTE_VERSION=6800 CONDA_PROMPT_MODIFIER=(base)  GNOME_TERMINAL_SCREEN=/org/gnome/Terminal/screen/ad962add_9561_41bc_bb0d_2d25c1bbe236 LESSCLOSE=/usr/bin/lesspipe %s %s XDG_SESSION_CLASS=user MAMBA_EXE=/home/ronaldas/.local/bin/micromamba TERM=xterm-256color LESSOPEN=| /usr/bin/lesspipe %s USER=ronaldas GNOME_TERMINAL_SERVICE=:1.979 CONDA_SHLVL=1 DISPLAY=:1 SHLVL=1 QT_IM_MODULE=ibus POSH_THEME=/home/ronaldas/.oh-my-posh/themes/M365Princess.omp.json XDG_RUNTIME_DIR=/run/user/1000 CONDA_DEFAULT_ENV=base XDG_DATA_DIRS=/usr/share/pop:/usr/share/gnome:/home/ronaldas/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share/:/usr/share/ PATH=/home/ronaldas/.micromamba/bin:/home/ronaldas/.micromamba/condabin:/home/ronaldas/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin GDMSESSION=pop DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus POWERLINE_COMMAND=oh-my-posh OLDPWD=/home/ronaldas _=/usr/local/bin/oh-my-posh]
[TRACE] 15:57:02.199 shell.go:GOOS() - 194ns
[TRACE] 15:57:02.199 shell.go:GOOS() - 130ns
[TRACE] 15:57:02.199 shell.go:GOOS() - 208ns
[TRACE] 15:57:02.199 shell.go:GOOS() - 189ns
[TRACE] 15:57:02.199 shell.go:GOOS() - 131ns
[TRACE] 15:57:02.199 shell.go:PathSeparator() - 135ns
[DEBUG] 15:57:02.199 properties.go:GetString:28 → NO DATA
[TRACE] 15:57:02.199 shell.go:PathSeparator() - 191ns
[DEBUG] 15:57:02.199 properties.go:GetString:28 → /
[TRACE] 15:57:02.199 shell.go:Pwd() - 242ns
[TRACE] 15:57:02.199 shell.go:Pwd() - 485ns
[DEBUG] 15:57:02.199 shell_unix.go:IsWsl:35 → false
[TRACE] 15:57:02.199 shell.go:GOOS() - 190ns
[TRACE] 15:57:02.199 shell.go:GOOS() - 206ns
[TRACE] 15:57:02.199 shell_unix.go:IsWsl() - 17.25µs
[TRACE] 15:57:02.199 shell.go:GOOS() - 195ns
[TRACE] 15:57:02.199 shell.go:StackCount() - 220ns
[TRACE] 15:57:02.199 shell.go:GOOS() - 190ns
[TRACE] 15:57:02.199 shell.go:GOOS() - 189ns
[TRACE] 15:57:02.199 shell.go:GOOS() - 134ns
[TRACE] 15:57:02.199 shell.go:GOOS() - 192ns
[TRACE] 15:57:02.199 shell.go:GOOS() - 125ns
[DEBUG] 15:57:02.199 shell.go:User:543 → ronaldas
[TRACE] 15:57:02.200 shell.go:User() - 11.809µs
[DEBUG] 15:57:02.200 shell.go:Host:555 → zamorak
[TRACE] 15:57:02.200 shell.go:Host() - 15.787µs
[TRACE] 15:57:02.200 shell.go:GOOS() - 194ns
[DEBUG] 15:57:02.200 shell_unix.go:Platform:77 → debian
[DEBUG] 15:57:02.200 shell.go:Getenv:392 → 1
[TRACE] 15:57:02.200 shell.go:Getenv(SHLVL) - 10.952µs
[TRACE] 15:57:02.200 shell.go:TemplateCache() - 655.889µs
[TRACE] 15:57:02.200 shell.go:TemplateCache() - 178.326µs
[DEBUG] 15:57:02.200 shell.go:CommandPath:594 → /usr/bin/python3
[TRACE] 15:57:02.200 shell.go:CommandPath(python3) - 945.341µs
[DEBUG] 15:57:02.200 shell.go:HasFilesInDir:458 → false
[TRACE] 15:57:02.200 shell.go:HasFilesInDir(pyvenv.cfg) - 48.485µs
[DEBUG] 15:57:02.200 shell.go:HasFilesInDir:458 → false
[TRACE] 15:57:02.200 shell.go:HasFilesInDir(pyvenv.cfg) - 19.664µs
[DEBUG] 15:57:02.200 shell.go:Getenv:392 → NO DATA
[TRACE] 15:57:02.200 shell.go:Flags() - 1.25µs
[TRACE] 15:57:02.200 shell.go:Getenv(VIRTUAL_ENV) - 10.758µs
[DEBUG] 15:57:02.200 shell.go:Getenv:392 → NO DATA
[TRACE] 15:57:02.200 shell.go:Getenv(CONDA_ENV_PATH) - 9.615µs
[TRACE] 15:57:02.200 shell.go:Pwd() - 589ns
[DEBUG] 15:57:02.200 shell.go:Getenv:392 → base
[TRACE] 15:57:02.200 shell.go:GOOS() - 227ns
[TRACE] 15:57:02.200 shell.go:Getenv(CONDA_DEFAULT_ENV) - 10.387µs
[TRACE] 15:57:02.200 shell.go:GOOS() - 139ns
[DEBUG] 15:57:02.200 segment.go:SetEnabled:497 → Segment: Git
[TRACE] 15:57:02.200 shell.go:GOOS() - 142ns
[TRACE] 15:57:02.200 shell.go:GOOS() - 201ns
[TRACE] 15:57:02.200 shell.go:GOOS() - 155ns
[DEBUG] 15:57:02.200 shell_unix.go:IsWsl:35 → false
[TRACE] 15:57:02.200 shell.go:GOOS() - 201ns
[TRACE] 15:57:02.200 shell_unix.go:IsWsl() - 14.865µs
[TRACE] 15:57:02.200 shell_unix.go:IsWsl2() - 27.875µs
[DEBUG] 15:57:02.200 properties.go:GetBool:22 → display_default: true
[TRACE] 15:57:02.200 shell.go:GOOS() - 130ns
[DEBUG] 15:57:02.200 properties.go:GetBool:22 → fetch_version: true
[ERROR] 15:57:02.200 shell.go:CommandPath:597 → exec: "python": executable file not found in $PATH
[TRACE] 15:57:02.200 shell.go:CommandPath(python) - 76.383µs
[DEBUG] 15:57:02.200 shell.go:CommandPath:594 → /usr/bin/git
[DEBUG] 15:57:02.200 shell.go:CommandPath:588 → /usr/bin/python3
[TRACE] 15:57:02.200 shell.go:CommandPath(git) - 103.612µs
[TRACE] 15:57:02.200 shell.go:CommandPath(python3) - 14.36µs
[TRACE] 15:57:02.200 shell.go:HasCommand(git) - 116.63µs
[DEBUG] 15:57:02.200 shell.go:Getenv:392 → NO DATA
[TRACE] 15:57:02.200 shell.go:Pwd() - 304ns
[TRACE] 15:57:02.200 shell.go:Getenv(PYENV_ROOT) - 8.769µs
[ERROR] 15:57:02.200 shell.go:HasParentFilePath:728 → stat .git: no such file or directory
[TRACE] 15:57:02.200 shell.go:HasParentFilePath(.git) - 65.451µs
[ERROR] 15:57:02.200 shell.go:CommandPath:597 → exec: "python": executable file not found in $PATH
[TRACE] 15:57:02.200 shell.go:CommandPath(python) - 82.045µs
[DEBUG] 15:57:02.200 properties.go:GetBool:22 → fetch_bare_info: false
[TRACE] 15:57:02.200 shell.go:HasCommand(python) - 93.316µs
[DEBUG] 15:57:02.200 shell.go:CommandPath:588 → /usr/bin/python3
[TRACE] 15:57:02.200 shell.go:CommandPath(python3) - 13.436µs
[TRACE] 15:57:02.200 shell.go:HasCommand(python3) - 25.048µs
[DEBUG] 15:57:02.205 shell.go:RunCommand:573 → Python 3.10.12
[TRACE] 15:57:02.205 shell.go:RunCommand(python3 --version) - 4.55216ms
[DEBUG] 15:57:02.205 properties.go:GetString:28 → https://docs.python.org/release/{{ .Major }}.{{ .Minor }}.{{ .Patch }}/whatsnew/changelog.html#python-{{ .Major }}-{{ .Minor }}-{{ .Patch }}
[DEBUG] 15:57:02.205 text.go:Render:70 → Rendering template: https://docs.python.org/release/{{ .Major }}.{{ .Minor }}.{{ .Patch }}/whatsnew/changelog.html#python-{{ .Major }}-{{ .Minor }}-{{ .Patch }}
[TRACE] 15:57:02.209 shell.go:TemplateCache() - 1.326µs
[TRACE] 15:57:02.209 shell.go:TemplateCache() - 315ns
[DEBUG] 15:57:02.209 text.go:Render:70 → Rendering template:   {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }} 
[DEBUG] 15:57:02.209 text.go:Render:70 → Rendering template: {{ .UserName }} 
[DEBUG] 15:57:02.209 text.go:Render:70 → Rendering template:  {{ .Path }} 
[TRACE] 15:57:02.209 shell.go:TemplateCache() - 1.203µs
[TRACE] 15:57:02.210 shell.go:Shell() - 823ns
[TRACE] 15:57:02.210 shell.go:TemplateCache() - 972ns
[TRACE] 15:57:02.210 shell.go:TemplateCache() - 1.157µs
[TRACE] 15:57:02.210 shell.go:Shell() - 420ns
[TRACE] 15:57:02.210 shell.go:Shell() - 509ns
[DEBUG] 15:57:02.210 text.go:Render:70 → Rendering template: diamond
[DEBUG] 15:57:02.210 text.go:Render:70 → Rendering template: powerline
[DEBUG] 15:57:02.210 text.go:Render:70 → Rendering template: powerline
[DEBUG] 15:57:02.210 text.go:Render:70 → Rendering template: powerline
[TRACE] 15:57:02.210 shell.go:Shell() - 229ns
[TRACE] 15:57:02.210 shell.go:Shell() - 137ns
[TRACE] 15:57:02.210 shell.go:Shell() - 132ns
[TRACE] 15:57:02.210 shell.go:Shell() - 133ns
[DEBUG] 15:57:02.210 shell.go:Getenv:392 → NO DATA
[TRACE] 15:57:02.210 shell.go:Getenv(XDG_CACHE_HOME) - 14.391µs
[TRACE] 15:57:02.210 shell_unix.go:CachePath() - 61.679µs
[TRACE] 15:57:02.210 shell.go:Flags() - 328ns
392781 commented 12 months ago

Just kidding, read the docs:

home_enabled boolean display the segment in the HOME folder or not - defaults to false

Sorry about that!

392781 commented 12 months ago

Apparently I skipped over that every time I looked at docs :sob:

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.