bash-git-prompt not working out of the box

Hello,

First of all, I am new on OpenSUSE, I may overlook some steps in my debug, so advises and troubleshooting guidance is welcome!

I installed bash-git-prompt (upstream here) with zypper on my OpenSUSE Tumbleweed. zypper info bash-git-prompt is making me believe that this package should work out of the box.

$ LANG=C zypper info bash-git-promptLoading repository data...
Reading installed packages...




Information for package bash-git-prompt:
----------------------------------------
Repository     : Dépôt principal (OSS)
Name           : bash-git-prompt
Version        : 2.7.1-2.3
Arch           : noarch
Vendor         : openSUSE
Installed Size : 114.8 KiB
Installed      : Yes
Status         : up-to-date
Source package : bash-git-prompt-2.7.1-2.3.src
Summary        : Informative git prompt for bash and fish
Description    : 
    A bash prompt that displays information about the current git repository. In particular the branch name, difference with remote branch, number of files
    staged, changed, etc.


    This package will automatically enable the git prompt for bash after
    install. It will disable the prompt accordingly after uninstall.



However it is not the case. When I go into a git repo, my prompt doesn’t change.

I see that the package installed /etc/profile.d/bash-git-prompt.sh, and indeed when I manually source this file, then my prompt updates and show me my git branch and everything.

I do not understand why this file is not automatically sourced. I’ve tried rebooting but it didn’t do anything. I readthis threadthat seems to relate and gives pointers but sadly offers no answer.

I use KDE Plasma. I tried with both Terminator and Konsole with no success.

Steps to reproduce :


sudo zypper install bash-git-prompt 
mkdir /tmp/test && cd /tmp/test
git init . 

My result = my prompt doesn’t change
Expected result = git-bash-prompt takes over my prompt and things looks pretty
https://i.ibb.co/q07N4bm/Screenshot-20210321-153030.png

You found this out after a new login after the install of the package? I ask, because the suite of profile file is not sourced when something is installed, but when a new shell is started. And you do not explain you did a fresh login.

Yes, I even rebooted my machine