bashrc: Don't set up VTE-specific PROMPT_COMMAND

Resolves: #2026892
This commit is contained in:
Martin Osvald 2022-05-09 12:40:59 +02:00
parent 7ca3e69e46
commit 317fa1c47e
2 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,13 @@
diff --git a/bashrc b/bashrc
index d19a7c1..d462ac7 100644
--- a/bashrc
+++ b/bashrc
@@ -19,8 +19,6 @@ if [ -z "$BASHRCSOURCED" ]; then
xterm*|vte*)
if [ -e /etc/sysconfig/bash-prompt-xterm ]; then
PROMPT_COMMAND=/etc/sysconfig/bash-prompt-xterm
- elif [ "${VTE_VERSION:-0}" -ge 3405 ]; then
- PROMPT_COMMAND="__vte_prompt_command"
else
PROMPT_COMMAND='printf "\033]0;%s@%s:%s\007" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/\~}"'
fi

View File

@ -17,6 +17,7 @@ Conflicts: initscripts < 4.26, bash <= 2.0.4-21
Patch0: setup-hostname.patch
Patch1: csh.login-unset-p.patch
Patch2: bashrc-remove-VTE-specific-PROMPT_COMMAND.patch
%description
The setup package contains a set of important system configuration and
@ -119,6 +120,7 @@ end
* Mon May 09 2022 Martin Osvald <mosvald@redhat.com> - 2.13.7-7
- Move /var/log/lastlog ownership to systemd (#2066753)
- tcsh sets variable p to /usr/sbin from /etc/csh.login (#2066767)
- bashrc: Don't set up VTE-specific PROMPT_COMMAND (#2026892)
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 2.13.7-6
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags