]> git.wh0rd.org Git - home.git/commitdiff
bashrc: activate for me only
authorMike Frysinger <vapier@gentoo.org>
Wed, 4 May 2022 13:43:55 +0000 (09:43 -0400)
committerMike Frysinger <vapier@gentoo.org>
Wed, 4 May 2022 13:43:55 +0000 (09:43 -0400)
.profile.d/ROOT-bashrc

index 0a8e355d248ee7016975bc835bc2518ce4a23d7b..974002e65d9e3c5cdc952f7f662b36d393006a48 100644 (file)
@@ -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