commit:     2f2fe12bb71eab8d8400f145c4e0aac2789f3e45
Author:     Kerin Millar <kfm <AT> plushkava <DOT> net>
AuthorDate: Mon Aug 18 07:43:14 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Aug 18 15:51:00 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2f2fe12b

app-shells/bash: drop ${FILESDIR}/bashrc.d/10-gentoo-title.bash

Nothing references this file anymore.

$ grep -F /10-gentoo-title.bash *.ebuild | wc -l
       0

Signed-off-by: Kerin Millar <kfm <AT> plushkava.net>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../bash/files/bashrc.d/10-gentoo-title.bash       | 52 ----------------------
 1 file changed, 52 deletions(-)

diff --git a/app-shells/bash/files/bashrc.d/10-gentoo-title.bash 
b/app-shells/bash/files/bashrc.d/10-gentoo-title.bash
deleted file mode 100644
index 2b2e23347784..000000000000
--- a/app-shells/bash/files/bashrc.d/10-gentoo-title.bash
+++ /dev/null
@@ -1,52 +0,0 @@
-# /etc/bash/bashrc.d/10-gentoo-title.bash
-
-genfun_set_win_title() {
-       # Assigns the basename of the current working directory, having
-       # sanitised it with @Q parameter expansion. Useful for paths containing
-       # newlines and such. As a special case, names consisting entirely of
-       # graphemes shall not undergo the expansion, for reasons of cleanliness.
-       genfun_sanitise_cwd() {
-               _cwd=${PWD##*/}
-               if [[ ! ${_cwd} ]]; then
-                       _cwd=${PWD}
-               elif [[ ${_cwd} == *[![:graph:]]* ]]; then
-                       _cwd=${_cwd@Q}
-               fi
-       }
-
-       # Sets the window title with the Set Text Parameters sequence. For
-       # screen, the sequence defines the hardstatus (%h) and for tmux, the
-       # pane_title (#T). For graphical terminal emulators, it is normal for
-       # the title bar to be affected.
-       genfun_set_win_title() {
-               genfun_sanitise_cwd
-               printf '\033]0;%s@%s - %s\007' "${USER}" "${HOSTNAME%%.*}" 
"${_cwd}"
-       }
-
-       genfun_set_win_title
-}
-
-# Proceed no further if the TTY is that of sshd(8) and if not running a 
terminal
-# multiplexer. Alas, there exist many operating environments in which the 
window
-# title would otherwise not be restored upon ssh(1) exiting. Those who wish for
-# the title to be set unconditionally may adjust ~/.bashrc - or create a custom
-# bashrc.d drop-in - to define PROMPT_COMMAND=(genfun_set_win_title).
-if [[ ${SSH_TTY} && ${TERM} != @(screen|tmux)* && ${SSH_TTY} == "$(tty)" ]]; 
then
-       return
-fi
-
-# Determine whether the terminal can handle the Set Text Parameters sequence.
-# The only terminals permitted here are those for which there is empirical
-# evidence that the sequence is supported and that the UTF-8 character encoding
-# is handled correctly. Quite rightly, this precludes many vintage terminals.
-# 
https://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h3-Operating-System-Commands
-case ${TERM} in
-       alacritty     |\
-       foot*         |\
-       rxvt-unicode* |\
-       screen*       |\
-       st-256color   |\
-       tmux*         |\
-       xterm*        )
-               PROMPT_COMMAND+=('genfun_set_win_title')
-esac

Reply via email to