summaryrefslogtreecommitdiff
path: root/app-shells/bash
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-06-16 00:09:44 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-06-16 00:09:44 +0100
commit0a3feeaba4dbc58966dccdbbfcd7fb14deef0831 (patch)
treed48a200142b883af377722ab54ec0c1d8c19912f /app-shells/bash
parent6a7029e0f7370d4d5dfe9e31cc2719a870482392 (diff)
gentoo auto-resync : 16:06:2024 - 00:09:44
Diffstat (limited to 'app-shells/bash')
-rw-r--r--app-shells/bash/Manifest8
-rw-r--r--app-shells/bash/bash-5.1_p16-r11.ebuild (renamed from app-shells/bash/bash-5.1_p16-r10.ebuild)0
-rw-r--r--app-shells/bash/bash-5.2_p26-r4.ebuild (renamed from app-shells/bash/bash-5.2_p26-r3.ebuild)0
-rw-r--r--app-shells/bash/bash-5.3_alpha-r3.ebuild (renamed from app-shells/bash/bash-5.3_alpha-r2.ebuild)0
-rw-r--r--app-shells/bash/files/bashrc.d/10-gentoo-title.bash49
5 files changed, 33 insertions, 24 deletions
diff --git a/app-shells/bash/Manifest b/app-shells/bash/Manifest
index c5a79b310333..09e084124843 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 862 BLAKE2B 93be0cc75a376562f8d2b03660cf30474be54dee8b201a0a679cf5c204f6a913a020236fab47e94ddf25a4eedfce35ec699f22d4ceb526a2a81ecf10c73d5f66 SHA512 bdaf735379affb1969dd7189d24686fa60f22a101493bde5598b2c57e4007db4f88ad08232731133754a21882ded64bb33b295388cdeb9d5b43b0a66de711c13
AUX bashrc.d/10-gentoo-color.bash 2110 BLAKE2B 7cdfed47d00ffd0d1ba721689019e0abf17714e1d42fa6d5c4fd3f794fd40537872bf0710a11aed097c80ac042d10c9b1cff87faa00dc1e1a6c890696311ab46 SHA512 08b07fa87eb16f8a15a5d9c5ec719a63646a83d631a7a39fcb85a251be93e2459e5da62cd04728fcf58a4d4bef432a87d2396e5842199ba9054947bd4993b047
-AUX bashrc.d/10-gentoo-title.bash 2080 BLAKE2B cb2a116efcebab6f8be38d747ade40382824483af55543455e490a69e339a0f528eeab383df29a05dd269cc011cdfd7da65ac9a2cd8382c9d7f77c37c0f0b8d1 SHA512 a687b895e65011eaf8a04da3284a3ee056265efc5604c478e1b8ab6e84cf5e22583eb7a0e39a9e7525dfbc1d0f04f3bb6c5acbee93fe870774c1c0e1253feee7
+AUX bashrc.d/10-gentoo-title.bash 2341 BLAKE2B 58eda9077cfd754f7a900add7c0ffe9a938f4e9b61ba1527f81acfe65f2e1b2ece4b89c9792ca00f82b0b156a8c8d901103f3d4bd94380122552014d17046cee SHA512 2a75e1ffe9c558d451f9bf0ead186fd5d1e13a8189dad308bebca46e6d2789a2140d4e8567d27ee95d5994b690afb1dbe3968ac701159e9efa548483286e98b7
AUX dot-bash_logout 127 BLAKE2B 8290778aea3426f4c56e5a9e7328faa76f99001fc7ce3eeb3ec26624edcd918d7e946da9a63ffcd0cf0f739b528ccb9e764d448276fe4344b69ef2036fdd9921 SHA512 e0248b5087656a4dd3a4790ed8e6101866b922ccab36b510b3bf408dc0c583e70f323fbad0392e4ea6ca5dcbe73568733e0c0aa9c8ce6b00ff5f72bf3e9fd8fd
AUX dot-bash_profile 204 BLAKE2B cdb5ece2bea3b47651e2c9ca8d48ef3b0c4b7e2d660632d79edf3cdcea8f5f5a061019739b977538b25f2ace9dcb46e25b30e2d566ea71f6c1ac05388e59c957 SHA512 97ad83696b7eb8b084a53530d1a3e7648722ae4199c91737ceb02b8238e7637b0770731f5140ffb552142311f79b140a041d7e1e5366ba60399b0019f164fce9
AUX dot-bashrc 551 BLAKE2B e245955936f0e036073e7fe153bd01181ae7206a73b45b0411e8d1a6eb0b7131dce260755eed00d2639848eebaefacf7c13087d4315b17f85fbafa6eba4c9fd8 SHA512 518b62aa2fa30e7d1692847929a6ce8dae4eac93e8b16d223d1ae86f4d5b076bcbe1852c9034f321c013e17502db9f771979957c67f8e8a71ca4eea7bfe9cc1b
@@ -452,9 +452,9 @@ EBUILD bash-4.2_p53.ebuild 5157 BLAKE2B 1a58f67c384b6ae781e48ddc2fb131086a23b449
EBUILD bash-4.3_p48-r2.ebuild 6358 BLAKE2B 532802911ced386ccff0594e5eee739d0d5ebba7e0bf89c431e2769ca7b2dc48f77787f12bcb327f9d394d3bd80680889968c3708ff9f7e64615347fcfd521f5 SHA512 62ed893e23d65d17d0f83d812e616511b4ff2d69a52e6bffb3ed421bb339d18a213a2f1da0239b108e3e81cf0b2f61b4e0cf535964f40dc4577d0cff226fd9bd
EBUILD bash-4.4_p23-r2.ebuild 6356 BLAKE2B 7501ac7628fcd2f35d9ca6c2153190d2524545f38a9eb793cd8b9d30ed5cb4ae11078cd7bc940fe3cda3f62797ed53de5ab82f726219c054cdc8779a011a8ea9 SHA512 9b9d12e1408944d18c698b0be9940618c059599138f10b20ed55dc69131aac900e3cae0e0b79a55e77d075f6a03c2970b6d22250afe5c7912c652800fe9a30ef
EBUILD bash-5.0_p18-r2.ebuild 7680 BLAKE2B 6a615f5ef093b32e85bfe8a0fd270d9c636c5d178ba518a8382e1ad5f0a2e128ad85fec1c8441c416c836bdf83ad5ad0e154f79792a908fd6a97ef23750b1800 SHA512 43a8e61a3b754c5ff25a4c7c6c62c07be626c0e9c1515fcfa8a15e25a3b0aff9fa4d00275c2d64bcb506417a7babb6ee120cde118fd7c9255fade7245adeaaae
-EBUILD bash-5.1_p16-r10.ebuild 9928 BLAKE2B 83eca9771c858fe746d61db2ff320bcfd9f1e829ad96fe08b01a58daa813e1101563489c08f6ec9167d5c94478525d9ac0d96bb1a4df28690715245a133c031b SHA512 ec70f4bb2b9a43fc0e606cdc637f4ad0c14eba249650f5c35f9c70b95b16f1c14f45b5de3a21a6aa120e5ce78615b62f2385f8dcb38d43eb61c4e703517a5b49
+EBUILD bash-5.1_p16-r11.ebuild 9928 BLAKE2B 83eca9771c858fe746d61db2ff320bcfd9f1e829ad96fe08b01a58daa813e1101563489c08f6ec9167d5c94478525d9ac0d96bb1a4df28690715245a133c031b SHA512 ec70f4bb2b9a43fc0e606cdc637f4ad0c14eba249650f5c35f9c70b95b16f1c14f45b5de3a21a6aa120e5ce78615b62f2385f8dcb38d43eb61c4e703517a5b49
EBUILD bash-5.1_p16-r6.ebuild 8999 BLAKE2B e9208661767c61fbd9b06a61111db58908897bdb2d722b7ccbe5d79cd6d2e2543b6c1c89688e62f51ecdb36f107e74727dc6985396a20d8db8682c9036a6db7d SHA512 3fa9c420bbbc154569eb2a9ebb96681b4f10bb6cdbec43608d171f1d9c46a169d7f6cf8b3f419ff395ebe5dee852fa8c46ccd74c10ee9f0f10a6a281da679f5d
-EBUILD bash-5.2_p26-r3.ebuild 11328 BLAKE2B e2a936fac4e2e9e8fab2e242269e8b1646e248cd9ed9aab4f1760c93e6763a841957c9cff9a5b833a3923af3533fc0d93b073ce008498af228ea0241ef4004ae SHA512 7565a3c82c06597cce4b5d1f349246a25e9f98fc2772de64991b10cf4202474489d4b2e5ae24fd3ea528cb4048b2420325fba9d8f8bf55369734421e0d30a908
-EBUILD bash-5.3_alpha-r2.ebuild 11194 BLAKE2B a1f59e955a684540cde5b8b0369312d364bcd94ecc9a33edb708e5e9d20f9bdbc3acf54d8df2cea6da81ae7b4ecf85e8a0ced717cc436b894e7a580deaddcee4 SHA512 94aa8315cd1e7e99fbcf4e89e0df5e66128259f76b05b12ec14caa384dfa92e84e9f5ff043c4cb85add21036045661684cc1f0c4a69c7f9110eaab4553d4d4f0
+EBUILD bash-5.2_p26-r4.ebuild 11328 BLAKE2B e2a936fac4e2e9e8fab2e242269e8b1646e248cd9ed9aab4f1760c93e6763a841957c9cff9a5b833a3923af3533fc0d93b073ce008498af228ea0241ef4004ae SHA512 7565a3c82c06597cce4b5d1f349246a25e9f98fc2772de64991b10cf4202474489d4b2e5ae24fd3ea528cb4048b2420325fba9d8f8bf55369734421e0d30a908
+EBUILD bash-5.3_alpha-r3.ebuild 11194 BLAKE2B a1f59e955a684540cde5b8b0369312d364bcd94ecc9a33edb708e5e9d20f9bdbc3acf54d8df2cea6da81ae7b4ecf85e8a0ced717cc436b894e7a580deaddcee4 SHA512 94aa8315cd1e7e99fbcf4e89e0df5e66128259f76b05b12ec14caa384dfa92e84e9f5ff043c4cb85add21036045661684cc1f0c4a69c7f9110eaab4553d4d4f0
EBUILD bash-9999.ebuild 11144 BLAKE2B 03af226452f1f1a1527e00e53d5f5a8db9397d952a1d937d953825aa75e9d204d5e39772ebe1fcce48e82152a568d56a960479a8e3e5a30f3afb3eea17defde6 SHA512 1fd2714511a0600c793901725cefd59a764fe256dcbac8dee9004aa7415d6d7df6631165dafecff3d487430baeefd645c1416935a8282da94f8c14c37a3e66ae
MISC metadata.xml 1009 BLAKE2B f71587b0a6d05b907f82b26be93b071290d91dc8f612f7b008a05eaa94d45be2ef8c1d992b7ac886648a9dcf964c30e8d9a7aff90d44835beb452e0d635b9533 SHA512 8aa1cb4c3206a76d10181394a91c315967fd9d3b359194f430f075fdd5a0b4b32149eec36b85412ef7e84b55e7b01955c75486b2df82b392a5acb3df8229a88d
diff --git a/app-shells/bash/bash-5.1_p16-r10.ebuild b/app-shells/bash/bash-5.1_p16-r11.ebuild
index 863a03b120bd..863a03b120bd 100644
--- a/app-shells/bash/bash-5.1_p16-r10.ebuild
+++ b/app-shells/bash/bash-5.1_p16-r11.ebuild
diff --git a/app-shells/bash/bash-5.2_p26-r3.ebuild b/app-shells/bash/bash-5.2_p26-r4.ebuild
index 980ea4fdba51..980ea4fdba51 100644
--- a/app-shells/bash/bash-5.2_p26-r3.ebuild
+++ b/app-shells/bash/bash-5.2_p26-r4.ebuild
diff --git a/app-shells/bash/bash-5.3_alpha-r2.ebuild b/app-shells/bash/bash-5.3_alpha-r3.ebuild
index 248f30b7b4e1..248f30b7b4e1 100644
--- a/app-shells/bash/bash-5.3_alpha-r2.ebuild
+++ b/app-shells/bash/bash-5.3_alpha-r3.ebuild
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 1fbf17c26327..0246d4fa36f0 100644
--- a/app-shells/bash/files/bashrc.d/10-gentoo-title.bash
+++ b/app-shells/bash/files/bashrc.d/10-gentoo-title.bash
@@ -1,5 +1,31 @@
# /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
+ # window_name (#W). For graphical terminal emulators, it is normal for
+ # the title bar be affected.
+ genfun_set_win_title() {
+ genfun_sanitise_cwd
+ printf '\033]2;%s@%s - %s\007' "${USER}" "${HOSTNAME%%.*}" "${_cwd}"
+ }
+
+ 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.
@@ -15,27 +41,14 @@ case ${TERM} in
# 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
-# 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 parameter expansion, for reasons of cleanliness.
-genfun_sanitise_cwd() {
- _cwd=${PWD##*/}
- if [[ ! ${_cwd} ]]; then
- _cwd=${PWD}
- elif [[ ${_cwd} == *[![:graph:]]* ]]; then
- _cwd=${_cwd@Q}
- fi
-}
-
-# Set 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.
+# 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.
@@ -48,9 +61,5 @@ case ${TERM} in
st-256color |\
tmux* |\
xterm* )
- genfun_set_win_title() {
- genfun_sanitise_cwd
- printf '\033]2;%s@%s - %s\007' "${USER}" "${HOSTNAME%%.*}" "${_cwd}"
- }
PROMPT_COMMAND+=('genfun_set_win_title')
esac