Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Git segment shows (detached) when using .Ref template property if the current commit is tagged #5035

Closed
1 task done
pacifi5t opened this issue Jun 9, 2024 · 0 comments
Closed
1 task done
Assignees
Labels
🐛 bug Something isn't working

Comments

@pacifi5t
Copy link

pacifi5t commented Jun 9, 2024

Code of Conduct

  • I agree to follow this project's Code of Conduct

What happened?

Hi! I've been trying to create a custom config for my prompt and got this issue. I was going to use only .Ref, but I included .HEAD for clarity. Here's how it looks:
Screenshot_20240610_000056

According to documentation .Ref should show the tag for the current commit (if there's one, of course):
image

By the way, shouldn't .Ref also display the commit hash when detached? I mean, I don't really see the point in showing (detached) in this case since we already have the .Detached property and can display this message ourselves.

Theme

And here's the config for the git segment:

{
    "type": "git",
    "style": "plain",
    "background": "transparent",
    "foreground": "white",
    "properties": {
        "fetch_status": true,
        "branch_icon": "",
        "commit_icon": "󰜘 ",
        "tag_icon": "󰓹 ",
        "branch_max_length": 24
    },
    "templates": [
        "<lightGreen>{{ .HEAD }}</> ",
        "{{ .Ref }} "
    ]
},

What OS are you seeing the problem on?

Linux

Which shell are you using?

zsh

Log output

Version: 21.3.0

Shell: zsh (5.9)

Prompt:


  ~/Projects/Sandbox/pacopts  detached at 󰓹 t2 (detached) ❯ 

Segments:

ConsoleTitle(true)                        -   0 ms
Os(true)                                  -   0 ms
Path(true)                                -   1 ms
Git(true)                                 -   9 ms
Status(true)                              -   0 ms

Run duration: 13.813002ms

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

Config path: /home/pacifi5t/.local/share/dotfiles/common/.config/oh-my-posh/config.json

Logs:

[DEBUG] 00:21:29.710 shell.go:Getenv:326 → NO DATA
[TRACE] 00:21:29.710 shell.go:Getenv(TERM_PROGRAM) - 49.11µs
[DEBUG] 00:21:29.710 shell.go:Getenv:326 → NO DATA
[TRACE] 00:21:29.710 shell.go:Getenv(OMP_CACHE_DIR) - 3.69µs
[DEBUG] 00:21:29.710 shell.go:Getenv:326 → /home/pacifi5t/.cache
[TRACE] 00:21:29.710 shell.go:Getenv(XDG_CACHE_HOME) - 3.95µs
[TRACE] 00:21:29.710 shell_unix.go:CachePath() - 28.8µs
[DEBUG] 00:21:29.711 shell.go:Getenv:326 → /home/pacifi5t/.local/share/dotfiles/common/.config/oh-my-posh/config.json
[TRACE] 00:21:29.711 shell.go:Getenv(POSH_THEME) - 6.65µs
[DEBUG] 00:21:29.711 shell_unix.go:Platform:87 → arch
[TRACE] 00:21:29.711 shell.go:resolveConfigPath() - 21.07µs
[TRACE] 00:21:29.711 shell.go:Init() - 391.108µs
[TRACE] 00:21:29.711 shell.go:Flags() - 50ns
[TRACE] 00:21:29.711 config.go:loadConfig() - 589.547µs
[TRACE] 00:21:29.711 shell.go:Flags() - 60ns
[DEBUG] 00:21:29.711 shell.go:Getenv:326 → NO DATA
[TRACE] 00:21:29.711 shell.go:Getenv(OMP_CACHE_DISABLED) - 4.18µs
[DEBUG] 00:21:29.711 shell.go:Shell:601 → no shell name provided in flags, trying to detect it
[DEBUG] 00:21:29.712 shell.go:Shell:609 → process name: zsh
[TRACE] 00:21:29.712 shell.go:Shell() - 1.030135ms
[DEBUG] 00:21:29.712 shell.go:Getenv:326 → 5.9
[TRACE] 00:21:29.712 shell.go:Getenv(POSH_SHELL_VERSION) - 3.6µs
[DEBUG] 00:21:29.712 debug.go:PrintDebug:22 → Segment: Title
[DEBUG] 00:21:29.712 text.go:Render:71 → Rendering template: {{.Folder}}{{if .Root}} :: root{{end}} :: {{.Shell}}
[TRACE] 00:21:29.713 shell_unix.go:Root() - 430ns
[TRACE] 00:21:29.713 shell.go:Shell() - 70ns
[TRACE] 00:21:29.713 shell.go:StatusCodes() - 60ns
[DEBUG] 00:21:29.713 shell_unix.go:IsWsl:35 → false
[TRACE] 00:21:29.713 shell_unix.go:IsWsl() - 9.97µs
[DEBUG] 00:21:29.713 shell.go:TemplateCache:782 → environment: [AWS_CONFIG_FILE=/home/pacifi5t/.config/aws/config AWS_SHARED_CREDENTIALS_FILE=/home/pacifi5t/.config/aws/credentials CARGO_HOME=/home/pacifi5t/.local/share/cargo CCACHE_DIR=/home/pacifi5t/.cache/ccache COLORFGBG=15;0 COLORTERM=truecolor CPUARCH=x86_64 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus DEBUGINFOD_URLS=https://debuginfod.archlinux.org  DESKTOP_SESSION=plasma DISPLAY=:1 DOTFILES_HOME=/home/pacifi5t/.local/share/dotfiles GIT_ASKPASS=/usr/bin/ksshaskpass GNUPGHOME=/home/pacifi5t/.local/share/gnupg GRADLE_USER_HOME=/home/pacifi5t/.local/share/gradle GTK2_RC_FILES=/home/pacifi5t/.config/gtk-2.0/gtkrc GTK_RC_FILES=/etc/gtk/gtkrc:/home/pacifi5t/.gtkrc:/home/pacifi5t/.config/gtkrc GTK_USE_PORTAL=1 HG=/usr/bin/hg HOME=/home/pacifi5t ICEAUTHORITY=/run/user/1000/iceauth_YSIPjZ INVOCATION_ID=908d15ee49064ad2b27b1c4e525bf205 IPYTHONDIR=/home/pacifi5t/.config/ipython JOURNAL_STREAM=9:1021 KDE_APPLICATIONS_AS_SCOPE=1 KDE_FULL_SESSION=true KDE_SESSION_UID=1000 KDE_SESSION_VERSION=6 KERAS_HOME=/home/pacifi5t/.local/state/keras KONSOLE_DBUS_SERVICE=:1.173 KONSOLE_DBUS_SESSION=/Sessions/8 KONSOLE_DBUS_WINDOW=/Windows/1 KONSOLE_VERSION=240500 LANG=en_GB.UTF-8 LANGUAGE=en_GB LC_ADDRESS=uk_UA.UTF-8 LC_MEASUREMENT=uk_UA.UTF-8 LC_MONETARY=uk_UA.UTF-8 LC_NUMERIC=en_GB.UTF-8 LC_PAPER=uk_UA.UTF-8 LC_TELEPHONE=uk_UA.UTF-8 LC_TIME=en_GB.UTF-8 LD_LIBRARY_PATH=/home/pacifi5t/.local/share/rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib:/home/pacifi5t/.local/share/rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib:/home/pacifi5t/.local/share/rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib:/home/pacifi5t/.local/share/rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib:/home/pacifi5t/.local/share/rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib:/home/pacifi5t/.local/share/rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib:/home/pacifi5t/.local/share/rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib LESSHISTFILE=/home/pacifi5t/.local/share/less/history LESSOPEN=|/usr/bin/lesspipe.sh %s LOGNAME=pacifi5t MAIL=/var/spool/mail/pacifi5t MANAGERPID=1007 MANGOHUD=1 MANGOHUD_DLSYM=1 MEMORY_PRESSURE_WATCH=/sys/fs/cgroup/user.slice/user-1000.slice/user@1000.service/session.slice/plasma-plasmashell.service/memory.pressure MEMORY_PRESSURE_WRITE=c29tZSAyMDAwMDAgMjAwMDAwMAA= MOTD_SHOWN=pam MOZ_ENABLE_WAYLAND=1 NODE_REPL_HISTORY=/home/pacifi5t/.local/share/node_repl_history NPM_CONFIG_USERCONFIG=/home/pacifi5t/.config/npm/npmrc OLDPWD=/home/pacifi5t/Projects/Sandbox/pacopts PAM_KWALLET5_LOGIN=/run/user/1000/kwallet5.socket PATH=/home/pacifi5t/.local/bin:/home/pacifi5t/.local/share/pyenv/bin:/home/pacifi5t/.pub-cache/bin:/home/pacifi5t/.local/share/flutter/bin:/home/pacifi5t/.local/share/cargo/bin:/home/pacifi5t/.local/share/pyenv/shims:/usr/local/sbin:/usr/local/bin:/usr/bin:/var/lib/flatpak/exports/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/usr/lib/rustup/bin PIPX_HOME=/home/pacifi5t/.local/share/pipx PROFILEHOME= PSQL_HISTORY=/home/pacifi5t/.local/share/psql_history PWD=/home/pacifi5t/Projects/Sandbox/pacopts PYENV_ROOT=/home/pacifi5t/.local/share/pyenv PYENV_SHELL=zsh PYTHONSTARTUP=/home/pacifi5t/.config/python/pythonrc QT_AUTO_SCREEN_SCALE_FACTOR=0 QT_WAYLAND_RECONNECT=1 RENPY_PATH_TO_SAVES=/home/pacifi5t/.local/share/renpy RUSTUP_HOME=/home/pacifi5t/.local/share/rustup SESSION_MANAGER=local/home-pc:@/tmp/.ICE-unix/1330,unix/home-pc:/tmp/.ICE-unix/1330 SHELL=/usr/bin/zsh SHELL_SESSION_ID=b5a4809594ae49f59f96d67f4aac7b28 SSH_ASKPASS=/usr/bin/ksshaskpass SSH_ASKPASS_REQUIRE=prefer SSH_AUTH_SOCK=/run/user/1000/ssh-agent.socket SYSTEMD_EXEC_PID=1377 TERM=xterm-256color USER=pacifi5t VCPKG_DISABLE_METRICS=1 VCPKG_ROOT=/home/pacifi5t/.local/share/vcpkg WAYLAND_DISPLAY=wayland-0 WINDOWID=3 XAUTHORITY=/run/user/1000/xauth_CvFPON XDG_ACTIVATION_TOKEN=kwin-98 XDG_CACHE_HOME=/home/pacifi5t/.cache XDG_CONFIG_DIRS=/home/pacifi5t/.config/kdedefaults:/etc/xdg XDG_CONFIG_HOME=/home/pacifi5t/.config XDG_CURRENT_DESKTOP=KDE XDG_DATA_DIRS=/home/pacifi5t/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share XDG_DATA_HOME=/home/pacifi5t/.local/share XDG_MENU_PREFIX=plasma- XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 XDG_SESSION_CLASS=user XDG_SESSION_DESKTOP=KDE XDG_SESSION_ID=2 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session1 XDG_SESSION_TYPE=wayland XDG_STATE_HOME=/home/pacifi5t/.local/state XDG_VTNR=1 ZDOTDIR=/home/pacifi5t/.config/zsh SHLVL=1 ZSH=/home/pacifi5t/.local/share/oh-my-zsh POSH_THEME=/home/pacifi5t/.local/share/dotfiles/common/.config/oh-my-posh/config.json POSH_SHELL_VERSION=5.9 POSH_PID=25462 POWERLINE_COMMAND=oh-my-posh CONDA_PROMPT_MODIFIER=false POSH_PROMPT_COUNT=14 ZLE_RPROMPT_INDENT=0 PAGER=less LESS=-R LSCOLORS=Gxfxcxdxbxegedabagacad 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=00:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.7z=01;31:*.ace=01;31:*.alz=01;31:*.apk=01;31:*.arc=01;31:*.arj=01;31:*.bz=01;31:*.bz2=01;31:*.cab=01;31:*.cpio=01;31:*.crate=01;31:*.deb=01;31:*.drpm=01;31:*.dwm=01;31:*.dz=01;31:*.ear=01;31:*.egg=01;31:*.esd=01;31:*.gz=01;31:*.jar=01;31:*.lha=01;31:*.lrz=01;31:*.lz=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.lzo=01;31:*.pyz=01;31:*.rar=01;31:*.rpm=01;31:*.rz=01;31:*.sar=01;31:*.swm=01;31:*.t7z=01;31:*.tar=01;31:*.taz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tgz=01;31:*.tlz=01;31:*.txz=01;31:*.tz=01;31:*.tzo=01;31:*.tzst=01;31:*.udeb=01;31:*.war=01;31:*.whl=01;31:*.wim=01;31:*.xz=01;31:*.z=01;31:*.zip=01;31:*.zoo=01;31:*.zst=01;31:*.avif=01;35:*.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:*~=00;90:*#=00;90:*.bak=00;90:*.crdownload=00;90:*.dpkg-dist=00;90:*.dpkg-new=00;90:*.dpkg-old=00;90:*.dpkg-tmp=00;90:*.old=00;90:*.orig=00;90:*.part=00;90:*.rej=00;90:*.rpmnew=00;90:*.rpmorig=00;90:*.rpmsave=00;90:*.swp=00;90:*.tmp=00;90:*.ucf-dist=00;90:*.ucf-new=00;90:*.ucf-old=00;90: EDITOR=nvim _=/home/pacifi5t/.local/bin/oh-my-posh POSH_CURSOR_LINE=17 POSH_CURSOR_COLUMN=1]
[TRACE] 00:21:29.713 shell.go:GOOS() - 80ns
[DEBUG] 00:21:29.713 shell.go:Pwd:356 → /home/pacifi5t/Projects/Sandbox/pacopts
[TRACE] 00:21:29.713 shell.go:Pwd() - 16.17µs
[TRACE] 00:21:29.713 shell.go:GOOS() - 30ns
[TRACE] 00:21:29.713 shell.go:GOOS() - 40ns
[TRACE] 00:21:29.713 shell.go:GOOS() - 30ns
[TRACE] 00:21:29.713 shell.go:GOOS() - 30ns
[TRACE] 00:21:29.713 shell.go:GOOS() - 30ns
[TRACE] 00:21:29.713 shell.go:GOOS() - 30ns
[TRACE] 00:21:29.713 shell.go:GOOS() - 40ns
[TRACE] 00:21:29.713 shell.go:GOOS() - 30ns
[TRACE] 00:21:29.713 shell.go:GOOS() - 30ns
[DEBUG] 00:21:29.713 shell.go:User:494 → pacifi5t
[TRACE] 00:21:29.713 shell.go:User() - 3.37µs
[DEBUG] 00:21:29.713 shell.go:Host:511 → home-pc
[TRACE] 00:21:29.713 shell.go:Host() - 4.62µs
[TRACE] 00:21:29.713 shell.go:GOOS() - 30ns
[DEBUG] 00:21:29.713 shell_unix.go:Platform:87 → arch
[DEBUG] 00:21:29.713 shell.go:Getenv:326 → 1
[TRACE] 00:21:29.713 shell.go:Getenv(SHLVL) - 3.28µs
[TRACE] 00:21:29.713 shell.go:TemplateCache() - 433.417µs
[DEBUG] 00:21:29.713 shell.go:Getenv:326 → 17
[TRACE] 00:21:29.713 shell.go:Getenv(POSH_CURSOR_LINE) - 3.87µs
[DEBUG] 00:21:29.713 shell.go:Getenv:326 → 1
[TRACE] 00:21:29.713 shell.go:Getenv(POSH_CURSOR_COLUMN) - 3.35µs
[TRACE] 00:21:29.713 shell.go:Flags() - 60ns
[TRACE] 00:21:29.713 shell.go:Flags() - 30ns
[TRACE] 00:21:29.713 shell.go:Shell() - 40ns
[TRACE] 00:21:29.713 shell.go:Shell() - 30ns
[TRACE] 00:21:29.713 shell.go:Flags() - 120ns
[DEBUG] 00:21:29.713 properties.go:GetString:28 → {{ .Code }}
[TRACE] 00:21:29.713 shell.go:Pwd() - 130ns
[TRACE] 00:21:29.713 shell.go:GOOS() - 40ns
[DEBUG] 00:21:29.713 segment.go:SetEnabled:533 → Segment: Status
[TRACE] 00:21:29.713 shell.go:StatusCodes() - 60ns
[DEBUG] 00:21:29.713 text.go:Render:71 → Rendering template: {{ .Code }}
[TRACE] 00:21:29.713 shell.go:Flags() - 610ns
[TRACE] 00:21:29.713 shell.go:Flags() - 410ns
[TRACE] 00:21:29.713 shell.go:Pwd() - 320ns
[TRACE] 00:21:29.713 shell.go:GOOS() - 140ns
[TRACE] 00:21:29.713 shell.go:Pwd() - 280ns
[TRACE] 00:21:29.713 shell.go:Flags() - 190ns
[DEBUG] 00:21:29.713 segment.go:SetEnabled:533 → Segment: Path
[TRACE] 00:21:29.713 shell.go:GOOS() - 130ns
[TRACE] 00:21:29.713 shell.go:Pwd() - 140ns
[TRACE] 00:21:29.713 shell.go:GOOS() - 70ns
[DEBUG] 00:21:29.713 segment.go:SetEnabled:533 → Segment: Os
[DEBUG] 00:21:29.713 segment.go:SetEnabled:533 → Segment: Git
[TRACE] 00:21:29.713 shell.go:Pwd() - 120ns
[TRACE] 00:21:29.713 shell.go:GOOS() - 80ns
[DEBUG] 00:21:29.713 shell_unix.go:IsWsl:35 → false
[TRACE] 00:21:29.713 shell.go:Shell() - 180ns
[DEBUG] 00:21:29.713 shell_unix.go:Platform:87 → arch
[TRACE] 00:21:29.713 shell_unix.go:IsWsl() - 5.46µs
[TRACE] 00:21:29.713 shell_unix.go:IsWsl2() - 9.92µs
[TRACE] 00:21:29.713 shell.go:Shell() - 80ns
[TRACE] 00:21:29.713 shell.go:GOOS() - 40ns
[DEBUG] 00:21:29.713 properties.go:GetBool:22 → display_distro_name: false
[DEBUG] 00:21:29.713 properties.go:GetString:28 → 
[TRACE] 00:21:29.713 shell.go:TemplateCache() - 480ns
[DEBUG] 00:21:29.713 properties.go:GetBool:22 → mapped_locations_enabled: true
[DEBUG] 00:21:29.713 shell.go:CommandPath:553 → /usr/bin/git
[TRACE] 00:21:29.713 shell.go:CommandPath(git) - 47.41µs
[DEBUG] 00:21:29.713 properties.go:GetString:28 → 
[TRACE] 00:21:29.713 shell.go:HasCommand(git) - 52.11µs
[TRACE] 00:21:29.713 shell.go:Pwd() - 60ns
[DEBUG] 00:21:29.713 properties.go:GetString:28 → 
[TRACE] 00:21:29.713 shell.go:TemplateCache() - 260ns
[TRACE] 00:21:29.713 shell.go:GOOS() - 100ns
[DEBUG] 00:21:29.713 properties.go:GetBool:22 → always_enabled: true
[DEBUG] 00:21:29.713 properties.go:GetString:28 → ~
[TRACE] 00:21:29.713 shell.go:TemplateCache() - 130ns
[TRACE] 00:21:29.713 shell.go:HasParentFilePath(.git) - 21.92µs
[DEBUG] 00:21:29.713 properties.go:GetStringArray:52 → exclude_folders: []
[DEBUG] 00:21:29.713 properties.go:GetKeyValueMap:46 → mapped_locations: map[]
[TRACE] 00:21:29.713 shell.go:GOOS() - 60ns
[TRACE] 00:21:29.713 shell.go:GOOS() - 40ns
[TRACE] 00:21:29.713 shell.go:PathSeparator() - 190ns
[DEBUG] 00:21:29.713 properties.go:GetBool:22 → fetch_user: false
[TRACE] 00:21:29.713 shell.go:GOOS() - 40ns
[TRACE] 00:21:29.713 shell.go:GOOS() - 80ns
[TRACE] 00:21:29.713 shell.go:GOOS() - 40ns
[TRACE] 00:21:29.713 shell.go:GOOS() - 40ns
[TRACE] 00:21:29.713 shell.go:GOOS() - 40ns
[TRACE] 00:21:29.713 shell.go:GOOS() - 40ns
[TRACE] 00:21:29.713 shell.go:GOOS() - 40ns
[TRACE] 00:21:29.713 shell.go:GOOS() - 40ns
[TRACE] 00:21:29.713 shell.go:GOOS() - 40ns
[DEBUG] 00:21:29.714 shell.go:Getenv:326 → NO DATA
[TRACE] 00:21:29.714 shell.go:Getenv(POSH_GIT_STATUS) - 17.59µs
[TRACE] 00:21:29.714 shell.go:GOOS() - 130ns
[DEBUG] 00:21:29.714 properties.go:GetBool:22 → fetch_status: true
[DEBUG] 00:21:29.714 properties.go:GetStringArray:52 → ignore_status: []
[TRACE] 00:21:29.714 shell.go:GOOS() - 120ns
[DEBUG] 00:21:29.714 properties.go:GetKeyValueMap:46 → status_formats: map[]
[DEBUG] 00:21:29.714 properties.go:GetKeyValueMap:46 → untracked_modes: map[]
[DEBUG] 00:21:29.714 properties.go:GetKeyValueMap:46 → ignore_submodules: map[]
[TRACE] 00:21:29.714 shell.go:GOOS() - 160ns
[TRACE] 00:21:29.714 shell.go:GOOS() - 80ns
[TRACE] 00:21:29.714 shell.go:PathSeparator() - 120ns
[TRACE] 00:21:29.714 shell.go:PathSeparator() - 100ns
[TRACE] 00:21:29.714 shell.go:GOOS() - 80ns
[TRACE] 00:21:29.714 shell.go:GOOS() - 80ns
[TRACE] 00:21:29.714 shell.go:PathSeparator() - 80ns
[TRACE] 00:21:29.714 shell.go:GOOS() - 80ns
[TRACE] 00:21:29.714 shell.go:GOOS() - 80ns
[TRACE] 00:21:29.714 shell.go:PathSeparator() - 80ns
[TRACE] 00:21:29.714 shell.go:GOOS() - 80ns
[TRACE] 00:21:29.714 shell.go:GOOS() - 80ns
[TRACE] 00:21:29.714 shell.go:PathSeparator() - 80ns
[TRACE] 00:21:29.714 shell.go:PathSeparator() - 70ns
[TRACE] 00:21:29.714 shell.go:PathSeparator() - 80ns
[DEBUG] 00:21:29.714 properties.go:GetString:28 → NO DATA
[TRACE] 00:21:29.714 shell.go:PathSeparator() - 110ns
[TRACE] 00:21:29.714 shell.go:PathSeparator() - 150ns
[TRACE] 00:21:29.714 shell.go:PathSeparator() - 110ns
[TRACE] 00:21:29.714 shell.go:PathSeparator() - 80ns
[DEBUG] 00:21:29.714 properties.go:GetString:28 → powerlevel
[DEBUG] 00:21:29.714 properties.go:GetFloat64:34 → max_width: 32.000000
[DEBUG] 00:21:29.714 properties.go:GetString:28 → NO DATA
[TRACE] 00:21:29.714 shell.go:PathSeparator() - 90ns
[DEBUG] 00:21:29.714 properties.go:GetString:28 → /
[TRACE] 00:21:29.714 shell.go:PathSeparator() - 70ns
[DEBUG] 00:21:29.714 properties.go:GetStringArray:52 → cycle: []
[DEBUG] 00:21:29.714 properties.go:GetString:28 → NO DATA
[TRACE] 00:21:29.714 shell.go:PathSeparator() - 80ns
[DEBUG] 00:21:29.714 properties.go:GetString:28 → /
[DEBUG] 00:21:29.714 properties.go:GetBool:22 → cycle_folder_separator: false
[DEBUG] 00:21:29.714 properties.go:GetString:28 → %s
[DEBUG] 00:21:29.714 properties.go:GetString:28 → %s
[DEBUG] 00:21:29.714 properties.go:GetString:28 → %s
[DEBUG] 00:21:29.714 properties.go:GetString:28 → %s
[TRACE] 00:21:29.714 shell.go:PathSeparator() - 110ns
[TRACE] 00:21:29.714 shell.go:Pwd() - 100ns
[DEBUG] 00:21:29.714 shell_unix.go:IsWsl:35 → false
[TRACE] 00:21:29.714 shell_unix.go:IsWsl() - 4.16µs
[TRACE] 00:21:29.714 shell.go:StackCount() - 70ns
[TRACE] 00:21:29.715 shell_unix.go:DirIsWritable(/home/pacifi5t/Projects/Sandbox/pacopts) - 7.48µs
[TRACE] 00:21:29.715 shell.go:TemplateCache() - 270ns
[DEBUG] 00:21:29.718 shell.go:RunCommand:531 ↓
    # branch.oid 27ebfb933f9095673d4a1d8fbabe0fa8bc9abcb3
    # branch.head (detached)
[TRACE] 00:21:29.718 shell.go:RunCommand(git -C /home/pacifi5t/Projects/Sandbox/pacopts --no-optional-locks -c core.quotepath=false -c color.status=false status -unormal --branch --porcelain=2) - 4.09136ms
[DEBUG] 00:21:29.718 properties.go:GetString:28 →  
[DEBUG] 00:21:29.722 shell.go:RunCommand:531 → t2
[TRACE] 00:21:29.722 shell.go:RunCommand(git -C /home/pacifi5t/Projects/Sandbox/pacopts --no-optional-locks -c core.quotepath=false -c color.status=false describe --tags --exact-match) - 4.261079ms
[DEBUG] 00:21:29.722 properties.go:GetString:28 → 󰓹 
[DEBUG] 00:21:29.722 shell.go:HasFolder:438 → false
[TRACE] 00:21:29.722 shell.go:HasFolder(/home/pacifi5t/Projects/Sandbox/pacopts/.git/rebase-merge) - 14.76µs
[DEBUG] 00:21:29.722 shell.go:HasFolder:438 → false
[TRACE] 00:21:29.722 shell.go:HasFolder(/home/pacifi5t/Projects/Sandbox/pacopts/.git/rebase-apply) - 6.01µs
[DEBUG] 00:21:29.722 properties.go:GetString:28 → 󰜘 
[DEBUG] 00:21:29.722 shell.go:HasFilesInDir:409 → false
[TRACE] 00:21:29.722 shell.go:HasFilesInDir(MERGE_MSG) - 90.87µs
[DEBUG] 00:21:29.722 shell.go:HasFilesInDir:409 → false
[TRACE] 00:21:29.722 shell.go:HasFilesInDir(CHERRY_PICK_HEAD) - 5.93µs
[DEBUG] 00:21:29.722 shell.go:HasFilesInDir:409 → false
[TRACE] 00:21:29.722 shell.go:HasFilesInDir(REVERT_HEAD) - 5.36µs
[DEBUG] 00:21:29.723 shell.go:HasFilesInDir:409 → false
[TRACE] 00:21:29.723 shell.go:HasFilesInDir(sequencer/todo) - 4.95µs
[DEBUG] 00:21:29.723 properties.go:GetString:28 → ≢
[DEBUG] 00:21:29.723 properties.go:GetBool:22 → fetch_upstream_icon: false
[TRACE] 00:21:29.723 shell.go:TemplateCache() - 400ns
[DEBUG] 00:21:29.723 text.go:Render:71 → Rendering template: ❯ 
[TRACE] 00:21:29.723 shell.go:Shell() - 220ns
[DEBUG] 00:21:29.723 text.go:Render:71 → Rendering template: {{.Icon}} 
[DEBUG] 00:21:29.723 text.go:Render:71 → Rendering template: {{if matchP .Path "~"}}{{else}}{{if .Writable}}{{else}}{{end}}{{end}} 
[DEBUG] 00:21:29.723 text.go:Render:71 → Rendering template: <lightGreen>{{ .HEAD }}</> 
[TRACE] 00:21:29.723 shell.go:TemplateCache() - 70ns
[TRACE] 00:21:29.723 shell.go:Shell() - 60ns
[TRACE] 00:21:29.723 shell.go:TemplateCache() - 410ns
[TRACE] 00:21:29.723 shell.go:TemplateCache() - 270ns
[DEBUG] 00:21:29.723 text.go:Render:71 → Rendering template: {{ .Ref }} 
[DEBUG] 00:21:29.723 text.go:Render:71 → Rendering template: {{ .Path }} 
[TRACE] 00:21:29.723 shell.go:TemplateCache() - 140ns
[TRACE] 00:21:29.723 shell.go:Shell() - 170ns
[TRACE] 00:21:29.723 shell.go:TemplateCache() - 130ns
[TRACE] 00:21:29.723 shell.go:Shell() - 110ns
[DEBUG] 00:21:29.723 shell.go:Getenv:326 → NO DATA
[TRACE] 00:21:29.723 shell.go:Getenv(TERM_PROGRAM) - 5.93µs
[DEBUG] 00:21:29.723 text.go:Render:71 → Rendering template: plain
[DEBUG] 00:21:29.723 text.go:Render:71 → Rendering template: plain
[DEBUG] 00:21:29.723 text.go:Render:71 → Rendering template: plain
[DEBUG] 00:21:29.723 text.go:Render:71 → Rendering template: {{if .Error}}lightRed{{else}}lightGreen{{end}}
[TRACE] 00:21:29.724 shell.go:TemplateCache() - 260ns
[DEBUG] 00:21:29.724 text.go:Render:71 → Rendering template: plain
[TRACE] 00:21:29.724 shell.go:Shell() - 120ns
[TRACE] 00:21:29.724 shell.go:Shell() - 30ns
[TRACE] 00:21:29.724 shell.go:Flags() - 80ns
[TRACE] 00:21:29.724 shell.go:Shell() - 30ns
[TRACE] 00:21:29.724 shell.go:Shell() - 60ns
[TRACE] 00:21:29.724 shell.go:Flags() - 50ns
[DEBUG] 00:21:29.724 shell.go:Getenv:326 → NO DATA
[TRACE] 00:21:29.724 shell.go:Getenv(OMP_CACHE_DIR) - 5.91µs
[DEBUG] 00:21:29.724 shell.go:Getenv:326 → /home/pacifi5t/.cache
[TRACE] 00:21:29.724 shell.go:Getenv(XDG_CACHE_HOME) - 4.59µs
[TRACE] 00:21:29.724 shell_unix.go:CachePath() - 31.57µs
[TRACE] 00:21:29.724 shell.go:Flags() - 40ns
@pacifi5t pacifi5t added the 🐛 bug Something isn't working label Jun 9, 2024
JanDeDobbeleer added a commit that referenced this issue Jun 10, 2024
aaronpowell pushed a commit to aaronpowell/oh-my-posh that referenced this issue Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants