Correction : {host,local,remote}/ : duplicity + MySQL.
[lhc/ateliers.git] / etc / profile.d / path.sh
diff --git a/etc/profile.d/path.sh b/etc/profile.d/path.sh
new file mode 100644 (file)
index 0000000..022054d
--- /dev/null
@@ -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"