bash-git-prompt
No description set
- Devel package for openSUSE:Factory
- Links to openSUSE:Factory / bash-git-prompt
- Download package
-
Checkout Package
osc -A https://api.opensuse.org checkout devel:tools:scm/bash-git-prompt && cd $_
- Create Badge
Refresh
Refresh
Source Files (show unmerged sources)
Filename | Size | Changed |
---|---|---|
bash-git-prompt-2.7.1.tar.gz | 0000050922 49.7 KB | |
bash-git-prompt.changes | 0000000690 690 Bytes | |
bash-git-prompt.spec | 0000004361 4.26 KB |
Comments 1
There's a slight bug in the package, caused by the fact that
/etc/profile.d/bash-git-prompt.sh
is executed via/etc/profile
.Now, the bash-git-prompt works properly when you login for example on a non-graphical TTY, or via SSH (even on localhost), as here we get a login shell.
BUT when you enter to a desktop environment, and use a terminal application, bash-git-prompt __git_ps1 gets overridden by
/etc/bash_completion.d/git-prompt
that comes as part of git-core, as that script is executed for non-login shell by /etc/bash.bashrcSo, the sequence of issues to the problem is here:
NOTE: it does not matter if for Konsole, you set startup command as '/bin/bash --login' , since PROFILEREAD=true already (I assume), so the bash-git-prompt scripts won't get run.
IMPROVEMENT: make bash-git-propmt run in the bashrc -sequence, too.