Skip to content

Instantly share code, notes, and snippets.

@bullshit
Created April 6, 2014 16:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bullshit/10008634 to your computer and use it in GitHub Desktop.
Save bullshit/10008634 to your computer and use it in GitHub Desktop.
Add selected MAMP PHP to PATH
if [ `uname` = "Darwin" ]; then
PHPVER=$(/usr/libexec/PlistBuddy -c "print phpVersion" ~/Library/Preferences/de.appsolute.mamppro.plist)
#echo "Version: $PHPVER"
export PATH=/Applications/MAMP/bin/php/php${PHPVER}/bin:$PATH
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment