Skip to content

Instantly share code, notes, and snippets.

@parsingphase
Created February 2, 2016 09:17
Show Gist options
  • Save parsingphase/a5d83fd4619181c563d2 to your computer and use it in GitHub Desktop.
Save parsingphase/a5d83fd4619181c563d2 to your computer and use it in GitHub Desktop.
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