summaryrefslogtreecommitdiffstats
path: root/composer.sh
diff options
context:
space:
mode:
Diffstat (limited to 'composer.sh')
-rw-r--r--composer.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/composer.sh b/composer.sh
new file mode 100644
index 0000000..c75753c
--- /dev/null
+++ b/composer.sh
@@ -0,0 +1,11 @@
+# Composer initialization script
+
+# Add path to commands installed using "composer global require ..."
+if [ "${EUID:-0}" != "0" ]; then
+ case :$PATH: in
+ *:${HOME}/.composer/vendor/bin:*) ;;
+ *) PATH=$PATH:${HOME}/.composer/vendor/bin ;;
+ esac
+ export PATH
+fi
+