X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=.profile.d%2FROOT-bashrc;h=0a8e355d248ee7016975bc835bc2518ce4a23d7b;hb=HEAD;hp=240b10ae30385aabb29694a656b41c35ed9f164c;hpb=96ad5ec34909a51d53c482e1e1ccdb8b0ff2d0c1;p=home.git diff --git a/.profile.d/ROOT-bashrc b/.profile.d/ROOT-bashrc index 240b10a..974002e 100644 --- a/.profile.d/ROOT-bashrc +++ b/.profile.d/ROOT-bashrc @@ -1,4 +1,6 @@ -for sh in /home/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