From 9f79509b543fb14621f3d575587bfde99fec9103 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 4 May 2022 09:43:55 -0400 Subject: [PATCH] bashrc: activate for me only --- .profile.d/ROOT-bashrc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.profile.d/ROOT-bashrc b/.profile.d/ROOT-bashrc index 0a8e355..974002e 100644 --- a/.profile.d/ROOT-bashrc +++ b/.profile.d/ROOT-bashrc @@ -1,4 +1,6 @@ -for sh in ~vapier/.profile.d/{.pre,*,.post}.sh ; do - . "$sh" -done -unset sh +if [[ "${SUDO_USER}" == "vapier" ]] ; then + for sh in ~vapier/.profile.d/{.pre,*,.post}.sh ; do + . "$sh" + done + unset sh +fi -- 2.39.5