Created
April 6, 2014 16:55
-
-
Save bullshit/10008634 to your computer and use it in GitHub Desktop.
Add selected MAMP PHP to PATH
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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