Skip to content

Instantly share code, notes, and snippets.

@RickardAhlstedt
Created January 18, 2020 22:31
Show Gist options
  • Save RickardAhlstedt/588037052b0ef602ab2d8c0a45d18784 to your computer and use it in GitHub Desktop.
Save RickardAhlstedt/588037052b0ef602ab2d8c0a45d18784 to your computer and use it in GitHub Desktop.
Install composer on mac os x
#!/bin/sh
mkdir tmp
cd tmp
curl -sS https://getcomposer.org/installer | php
copy composer.phar /usr/local/bin
echo alias composer="php /usr/local/bin/composer.phar" > ~/.bash_profile
source ~/.bash_profile
cd ..
echo "Done installing, please remove the tmp-folder created by this installer, thank you!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment