filesystem: Remove /etc/bash.bash_logout (#5221)

* filesystem: Remove /etc/bash.bash_logout

By adding `Hold=always` in ~/.minttyrc, it is possible to keep MinTTY open
after all processes in it have terminated, which is useful for examination
of outputs. However this script used to clear the screen, leaving a blank
window, and causing confusion.

Another reason for removing this script is that it's not found on fresh
installation of Debian or Ubuntu.

Reference: https://superuser.com/questions/1262655/mintty-how-to-keep-my-output-visible-after-processes-terminate/1263001#1263001
Signed-off-by: LIU Hao <lh_mouse@126.com>

* Update PKGBUILD

---------

Signed-off-by: LIU Hao <lh_mouse@126.com>
Co-authored-by: Christoph Reiter <reiter.christoph@gmail.com>
This commit is contained in:
LIU Hao 2025-02-23 16:52:26 +08:00 committed by GitHub
parent 2eae5c4c11
commit 71d24745af
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 5 additions and 28 deletions

View File

@ -4,7 +4,7 @@
# Contributor: Alethea Rose <alethea@alethearose.com>
pkgname=filesystem
pkgver=2024.12.18
pkgver=2025.02.23
pkgrel=1
pkgdesc='Base filesystem'
arch=('i686' 'x86_64')
@ -16,12 +16,10 @@ msys2_references=(
'internal'
)
backup=('etc/fstab' 'etc/shells' 'etc/profile'
etc/bash.bash{rc,_logout} etc/skel/.bash{rc,_profile,_logout}
etc/bash.bashrc etc/skel/.bash{rc,_profile}
etc/nsswitch.conf)
source=('bash.bash_logout'
'bash.bashrc'
source=('bash.bashrc'
'cmd'
'dot.bash_logout'
'dot.bash_profile'
'dot.bashrc'
'dot.profile'
@ -51,10 +49,8 @@ source=('bash.bash_logout'
'main-config.site'
'redirect-config.site'
'os-release')
sha256sums=('742a7d66b7a5ebd2b8461728c5b44a46b2305fd2116208eecae5f45828938ea0'
'36d4affa25606c87e70c42a5fe2294aa7898fb54f93a27910fb55224f4d6588a'
sha256sums=('36d4affa25606c87e70c42a5fe2294aa7898fb54f93a27910fb55224f4d6588a'
'99eae6e37081edd73b399009c85f4a67a0c14481241ee4937ab45c4178b540fb'
'4330edf340394d0dae50afb04ac2a621f106fe67fb634ec81c4bfb98be2a1eb5'
'00501046c301c5cb627b147e461217cda015aa109f673a9c1a67602891a26e88'
'92b1d9ec2d3032fcfc6a54f09b944dfb02ca7be74763157fe54b24b7d6d5f730'
'0e3f00cb2cc7778a1fb5440fc979cfeeafeca72c3059dd474f38ed6b99b46070'
@ -103,7 +99,7 @@ package() {
# setup /etc
#
install -d etc/{fstab.d,skel,profile.d,post-install}
for f in bash.bashrc bash.bash_logout fstab shells profile nsswitch.conf msystem os-release; do
for f in bash.bashrc fstab shells profile nsswitch.conf msystem os-release; do
install -m644 ${srcdir}/${f} etc/
done
@ -115,7 +111,6 @@ package() {
#
install -m644 ${srcdir}/dot.bashrc etc/skel/.bashrc
install -m644 ${srcdir}/dot.bash_profile etc/skel/.bash_profile
install -m644 ${srcdir}/dot.bash_logout etc/skel/.bash_logout
install -m644 ${srcdir}/dot.profile etc/skel/.profile
install -m644 ${srcdir}/profile.tzset.sh etc/profile.d/tzset.sh

View File

@ -1,15 +0,0 @@
# To the extent possible under law, the author(s) have dedicated all
# copyright and related and neighboring rights to this software to the
# public domain worldwide. This software is distributed without any warranty.
# You should have received a copy of the CC0 Public Domain Dedication along
# with this software.
# If not, see <https://creativecommons.org/publicdomain/zero/1.0/>.
# /etc/bash.bash_logout: executed by bash(1) when login shell exits.
# System-wide bashrc file
# when leaving the console clear the screen to increase privacy
if [ "$SHLVL" = 1 ]; then
[ -x /usr/bin/clear ] && /usr/bin/clear
fi

View File

@ -1,3 +0,0 @@
#
# ~/.bash_logout
#