X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=etc%2Fprofile.d%2Fpath.sh;fp=etc%2Fprofile.d%2Fpath.sh;h=022054d9d30c110c70ec4705f0a93ac9da78079e;hb=a11ad78672a096632b15a660509d7dd5f7c5eae5;hp=0000000000000000000000000000000000000000;hpb=0d705d8e2a919ee40866307aa3e18b1a5c4e7583;p=lhc%2Fateliers.git diff --git a/etc/profile.d/path.sh b/etc/profile.d/path.sh new file mode 100644 index 0000000..022054d --- /dev/null +++ b/etc/profile.d/path.sh @@ -0,0 +1,3 @@ +export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" +! getent group sudo | cut -f 4 -d : | tr , '\n' | grep -Fqx "$USER" || +PATH="$HOME/src/$(hostname)/local:$PATH"