]> git.ipfire.org Git - thirdparty/systemd.git/commit
profile/systemd-osc-context: fix overriding of PROMPT_COMMAND
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 6 Nov 2025 10:55:06 +0000 (11:55 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 6 Nov 2025 11:21:27 +0000 (12:21 +0100)
commitdd20ba74e3b440a220907e6fe04fd860a84ddd22
tree2f666248d8f83ac5a2fbd8c534abee633b0ee3ce
parentfea7f5d68b5a6272ce8989e872a57b42121b5205
profile/systemd-osc-context: fix overriding of PROMPT_COMMAND

In https://github.com/systemd/systemd/issues/39114 users are reporting
that our script overrides PROMPT_COMMAND that they had. After looking
at /etc/bashrc in Fedora, I see that it only sets PROMPT_COMMAND if
[ -z "$PROMPT_COMMAND" ]. Let's adjust the script so this continues to
work.

Fixes https://github.com/systemd/systemd/issues/39114.
(This is a bit of a stretch. 39114 was originally about SecureCRT,
but that was resolved in SecureCRT. But there was a lot of dicussion
about the prompt being overriden, which this commit should fix.)
profile.d/80-systemd-osc-context.sh