From 07f8debf03dfb0e5ed36051c13c86c8cd00cd241 Mon Sep 17 00:00:00 2001 From: Debarshi Ray Date: Jun 15 2022 17:48:42 +0000 Subject: bashrc: Clean up unused references to VTE VTE has never ever set the TERM environment variable to vte*. For the last 7.5 years, it has been setting TERM to xterm-256color [1]. Earlier it used to be xterm. Things like gnome* and vte* are the inventions of the terminfo maintainer, who also maintains xterm, and thinks that no other terminal emulator should set TERM to xterm*. However, this doesn't match reality. Regardless, VTE owns its PROMPT_COMMAND through its own Bash configuration snippet in /etc/profile.d/vte.sh which has (and must have) a higher priority than /etc/bashrc [2]. Therefore, this cleans up unused cruft and makes things a little less confusing. [1] VTE commit 82a8b0697dd948fa https://gitlab.gnome.org/GNOME/vte/-/commit/82a8b0697dd948fa https://bugzilla.gnome.org/show_bug.cgi?id=740641 [2] Commit 718cfa4a2a3eb0ce https://pagure.io/setup/pull-request/23 https://pagure.io/setup/pull-request/37 --- diff --git a/bashrc b/bashrc index 9178030..a4021d9 100644 --- a/bashrc +++ b/bashrc @@ -16,7 +16,7 @@ if [ -z "$BASHRCSOURCED" ]; then if [ "$PS1" ]; then if [ -z "$PROMPT_COMMAND" ]; then case $TERM in - xterm*|vte*) + xterm*) if [ -e /etc/sysconfig/bash-prompt-xterm ]; then PROMPT_COMMAND=/etc/sysconfig/bash-prompt-xterm else