JanDeDobbeleer / oh-my-posh

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

Coloring based on git status not working #847

Closed vkosev closed 3 years ago

vkosev commented 3 years ago

Prerequisites

Description

Upgraded to newest versions of oh-my-posh and posh-git and now the coloring of the powerline based on the git status is not working.

Environment

Optional

Steps to Reproduce

  1. Delete the folders of the oh-my-posh and posh-git modules

  2. Download the modules again

    Install-Module posh-git -Scope CurrentUser
    Install-Module oh-my-posh -Scope CurrentUser
  3. Edit the power shell core profile with

Import-Module posh-git
Import-Module oh-my-posh
Set-PoshPrompt -Theme paradox
$env:POSH_GIT_ENABLED = $true

Expected behavior: When there are changes not staged for commit the color of the powerline was getting orange. When my local branch is a head of origin, color of the powerline again changes to something else.

Actual behavior: Now the color of the powerline is always green, no matter the git status

JanDeDobbeleer commented 3 years ago

@VKosev that's expected as that theme doesn't have status enabled (nor colors). Have a look at exporting the theme and setting your own with those settings. You can find the config values here. For that to work, also set "display_status": true.

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