summaryrefslogtreecommitdiff
path: root/app-shells/bash/files/bashrc.d
diff options
context:
space:
mode:
Diffstat (limited to 'app-shells/bash/files/bashrc.d')
-rw-r--r--app-shells/bash/files/bashrc.d/15-gentoo-bashrc-check.bash24
1 files changed, 0 insertions, 24 deletions
diff --git a/app-shells/bash/files/bashrc.d/15-gentoo-bashrc-check.bash b/app-shells/bash/files/bashrc.d/15-gentoo-bashrc-check.bash
deleted file mode 100644
index 8f2b0405c6b9..000000000000
--- a/app-shells/bash/files/bashrc.d/15-gentoo-bashrc-check.bash
+++ /dev/null
@@ -1,24 +0,0 @@
-# /etc/bash/bashrc.d/15-gentoo-bashrc-check.bash
-
-# Some users have ~/.bashrc as a copy of ${FILESDIR}/bashrc which either matches
-# exactly or is only trivially modified. Such is an improper state of affairs
-# and results in the bashrc.d drop-ins being sourced twice. Warn them that they
-# should use the skeleton file instead. This drop-in should be removed no sooner
-# than one year from the date of its introduction.
-
-if [[ -e ${TMPDIR:-/tmp}/.gentoo-bashrc-check-${EUID} || ! -f ~/.bashrc ]]; then
- return
-fi
-
-{
- if grep -qxF 'for sh in /etc/bash/bashrc.d/* ; do' -- ~/.bashrc; then
- cat >&3 <<'EOF'
-WARNING! Your ~/.bashrc file is based on an old copy of /etc/bash/bashrc, which
-is not intended for use within a home directory. Please either delete ~/.bashrc
-or replace it with a copy of /etc/skel/.bashrc before optionally customizing it
-further. Neglecting to do so may result in bash behaving unexpectedly.
-
-EOF
- fi
- touch -- "${TMPDIR:-/tmp}/.gentoo-bashrc-check-${EUID}"
-} 3>&2 2>/dev/null