Created
February 2, 2016 09:17
-
-
Save parsingphase/a5d83fd4619181c563d2 to your computer and use it in GitHub Desktop.
Bash profile with switching functions to use multiple homebrew versions of PHP.
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
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