On Thursday, October 24, 2024 at 04:33:14 PM GMT+3, Matěj Cepl <mcepl@xxxxxxx> wrote: > On Thu Oct 24, 2024 at 1:46 PM CEST, avih wrote: > > ... > > - How did you install the git-prompt support? > > Using the git-prompt.sh from the package, but it seems to be the same as the upstream one in contrib/ Good. > ... using the script from git-core. > > . ~/git-prompt.sh > > PS1='\w$(__git_ps1)\n\$ ' > > Yes, that works: > ... Good. So this probably means there's no issue with that script, unless you can isolate a specific minimal example (with some config vars, PS1/PROMPT_COMMAND, etc) which behaves badly. > > - Which shell do you use? (bash? zsh? something else?) > > bash with ble.sh (freshly updated, but the problem can be reproduced even without it) ble.sh looks pretty not-small, and I'm not familiar with it. > > - How is the (git) prompt set in your shell startup file? (~/.bashrc, > > or ~/.profile, etc). If you don't know exactly, then can you please > > attach your shell startup files? > > * /etc/bash.bashrc is > ... (generally default distro files) > > * ~/.bashrc is https://mcepl.fedorapeople.org/tmp/bashrc > * ~/.config/blesh/init.sh is > https://mcepl.fedorapeople.org/tmp/init.sh > > ... > > So, the problem is somewhere in my too complicated configuration. Any idea, where? These files load/use ~/.config/dotfiles/osc/osc-prompt.sh which is not linked or provided, and I'm guessing is either the culprit, or the issue is how you use it together with __git_ps1, which I can't help you with. You may link it in a reply, but I likely don't have the bandwidth to look into it, though maybe someone else would be able to help. Or, even better, you should look into it and bisect your config. For what it's worth, if, with that same Tumbleweed live DVD, with git installed, I add your ~/.bashrc content to mine (default), and add this final line: PS1='\n\w$(__git_ps1)\n\$ ' then it does work correctly (with your GIT_PS1_* config vars etc). But your PS1 is: export PS1='\h:\W$(__osc_prompt) \$ ' So I'm guessing things go wrong somewhere between __osc_prompt and __git_ps1 invocation, but I can't tell where. Anyway, good luck. avih