Autoswitch $PATH for CLI
Goon3r opened this issue · comments
Hello,
Im wondering if a method of auto swithcing the $PATH variable for the PHP CLI can be created for this package? I imagine with the patterns in the .bash_profile declartions this is something that is doable.
#export PATH="$(brew --prefix homebrew/php/php56)/bin:$PATH"
export PATH="$(brew --prefix homebrew/php/php70)/bin:$PATH"
Thanks for the package, really nice work!
Thanks for the response.
Realised it was a mistake on my part.
On install of homebrew php packages it gives the following caveat
Export line changes depending on versions
✩✩✩✩ PHP CLI ✩✩✩✩
If you wish to swap the PHP you use on the command line, you should add the following to ~/.bashrc,
~/.zshrc, ~/.profile or your shell's equivalent configuration file:
export PATH="$(brew --prefix homebrew/php/php70)/bin:$PATH"
Commenting all of these lines seems to fix this issue.
Awesome glad you got things sorted.