Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Bash profile with switching functions to use multiple homebrew versions of PHP.
export PS1="\u@rgmac:\w $ "
export PATH=/Users/richardg/Library/Python/2.7/bin/:$PATH
export PATH_DIST_PHP=$PATH
function setPhp56 {
export PATH=/usr/local/Cellar/php56/5.6.17/bin:$PATH_DIST_PHP
php --version
}
function setPhp7 {
export PATH=/usr/local/Cellar/php70/7.0.2/bin:$PATH_DIST_PHP
php --version
}
#Add lowecase versions
function setphp7 {
setPhp7
}
function setphp56 {
setPhp56
}
setphp7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.