summaryrefslogtreecommitdiff
path: root/app-shells/bash
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-06-23 00:11:31 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-06-23 00:11:31 +0100
commitbff543bb632933380da922cbfc07c67157d72d42 (patch)
treedf2e5eebc3dbd8e29153ab3a869b3be8d9be9f19 /app-shells/bash
parent491d0101c89d81dec507f28215b3cb094800d600 (diff)
gentoo auto-resync : 23:06:2024 - 00:11:30
Diffstat (limited to 'app-shells/bash')
-rw-r--r--app-shells/bash/Manifest2
-rw-r--r--app-shells/bash/files/bashrc.d/10-gentoo-title.bash32
2 files changed, 10 insertions, 24 deletions
diff --git a/app-shells/bash/Manifest b/app-shells/bash/Manifest
index dc54ea73f3e9..8ac0caf9f49e 100644
--- a/app-shells/bash/Manifest
+++ b/app-shells/bash/Manifest
@@ -9,7 +9,7 @@ AUX bash_logout 205 BLAKE2B b8c0266c3d1e31a714304a2b3b33389f042ae5bd497379f9b15c
AUX bashrc 3494 BLAKE2B e9379c18fca85666cd347d1d8cf5c9859c5865ad7a3ded1ac5724bad6117924231e89dcc21f1a80931591e9a39c1acc3f7be8b2afe38986ea34b3b8fc12f5814 SHA512 a8fa416ab9265055e778fad3e4190ab5f57da0823c12d60a915bb77ba701fe93df8d16e041dd5747ed9db899a2516451b803db648aed0f85f0abb6d98c9414b8
AUX bashrc-r1 894 BLAKE2B ffaebc59c403b815df246342564e7d871f0c5eda437f7d63cef42ed2041912bd61722cab3034342fcb0336b48d9a14ada74052e52f02774695fc3e968c6feaae SHA512 82972cd0feede88c679fe8690da4884e8efa3decfc3bb72404fbd1129364f0092d2edfb1c6cc1f5adf783a6deca64a82c670a8b034ac0c3f85742a67306aa36b
AUX bashrc.d/10-gentoo-color.bash 2209 BLAKE2B 8f01349bcb9814fc371debdda7bc6158a51b285938426fef5f6427ed40df0ae480c3d5318df30f72bf854c07e0da619d3e2cdb46927cbfdc58d3eb8cb3a305ba SHA512 697cb742378f8fbe6073e8457cc92d83b21606fe45b2779436bc6a874847cef80168d84c413d8c04b0062840e8720967d94877839599ea819d7547afc891934c
-AUX bashrc.d/10-gentoo-title.bash 2341 BLAKE2B 58eda9077cfd754f7a900add7c0ffe9a938f4e9b61ba1527f81acfe65f2e1b2ece4b89c9792ca00f82b0b156a8c8d901103f3d4bd94380122552014d17046cee SHA512 2a75e1ffe9c558d451f9bf0ead186fd5d1e13a8189dad308bebca46e6d2789a2140d4e8567d27ee95d5994b690afb1dbe3968ac701159e9efa548483286e98b7
+AUX bashrc.d/10-gentoo-title.bash 1851 BLAKE2B 8fdc28e87ff440a085d72c974cd75a280eb7f422541e703a42aee26515fd4df5887b464fb7db822a5de8b35335b0c72310ca6b91e1de182dc80e01eeec379f20 SHA512 d7c22607be1322c5f5209f12f6c80177fbf723288093c79a05988a3ed6842b8bbb151edd825ed0bf143df36b975c58da4fcc55f244f1b56f34b23d6883956fc1
AUX bashrc.d/15-gentoo-bashrc-check.bash 1002 BLAKE2B b104e871329de47ac82941ca7ff9b03e2e66779603145dcae103052344b207306438cd3023d36255aca2b5fe53a7dc48d42e06e7e1d764ab0ad420b29c2e1650 SHA512 9134a27e234fe2ec0c27f99c83a9a8ac2b3209c766cb7ffbee47dac4c378178844c2c66851b8b114f43e1b4d9790e21121c33ba48cac1bc0a8f2ca06fe841d80
AUX dot-bash_logout 127 BLAKE2B 8290778aea3426f4c56e5a9e7328faa76f99001fc7ce3eeb3ec26624edcd918d7e946da9a63ffcd0cf0f739b528ccb9e764d448276fe4344b69ef2036fdd9921 SHA512 e0248b5087656a4dd3a4790ed8e6101866b922ccab36b510b3bf408dc0c583e70f323fbad0392e4ea6ca5dcbe73568733e0c0aa9c8ce6b00ff5f72bf3e9fd8fd
AUX dot-bash_profile 204 BLAKE2B cdb5ece2bea3b47651e2c9ca8d48ef3b0c4b7e2d660632d79edf3cdcea8f5f5a061019739b977538b25f2ace9dcb46e25b30e2d566ea71f6c1ac05388e59c957 SHA512 97ad83696b7eb8b084a53530d1a3e7648722ae4199c91737ceb02b8238e7637b0770731f5140ffb552142311f79b140a041d7e1e5366ba60399b0019f164fce9
diff --git a/app-shells/bash/files/bashrc.d/10-gentoo-title.bash b/app-shells/bash/files/bashrc.d/10-gentoo-title.bash
index 0246d4fa36f0..003e364ff072 100644
--- a/app-shells/bash/files/bashrc.d/10-gentoo-title.bash
+++ b/app-shells/bash/files/bashrc.d/10-gentoo-title.bash
@@ -16,8 +16,8 @@ genfun_set_win_title() {
# Sets the window title with the Set Text Parameters sequence. For
# screen, the sequence defines the hardstatus (%h) and for tmux, the
- # window_name (#W). For graphical terminal emulators, it is normal for
- # the title bar be affected.
+ # 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]2;%s@%s - %s\007' "${USER}" "${HOSTNAME%%.*}" "${_cwd}"
@@ -26,27 +26,13 @@ genfun_set_win_title() {
genfun_set_win_title
}
-# Set window title with the Title Definition String sequence. For screen, the
-# sequence defines the window title (%t) and for tmux, the pane_title (#T).
-# For tmux to be affected requires that its allow-rename option be enabled.
-# https://www.gnu.org/software/screen/manual/html_node/Control-Sequences.html
-case ${TERM} in
- screen*|tmux*)
- genfun_set_pane_title() {
- printf '\033k%s\033\\' "${HOSTNAME%%.*}"
- }
- PROMPT_COMMAND+=('genfun_set_pane_title')
- ;;
- *)
- # If the TTY is that of sshd(8) then proceed no further. Alas,
- # there exist many operating environments in which the window
- # title would otherwise not be restored upon ssh(1) exiting.
- # Users wishing to coerce the historical behaviour have the
- # option of setting PROMPT_COMMAND=(genfun_set_win_title).
- if [[ ${SSH_TTY} && ${SSH_TTY} == "$(tty)" ]]; then
- return
- fi
-esac
+# If the TTY is that of sshd(8) then proceed no further. Alas, there exist many
+# operating environments in which the window title would otherwise not be
+# restored upon ssh(1) exiting. Users wishing to coerce the historical
+# behaviour have the option of setting PROMPT_COMMAND=(genfun_set_win_title).
+if [[ ${SSH_TTY} && ${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