You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if [ "$PHP_VERSION" == "7.4" ]; then
export PATH="/d/webstudy/PhpWebStudy-Data/app/php-7.4.33/:$PATH"
elif [ "$PHP_VERSION" == "8.0" ]; then
export PATH="/d/webstudy/PhpWebStudy-Data/app/php-8.2.18/:$PATH"
else
echo "Please specify a PHP version (e.g., 7.4 or 8.0)"
fi
由于我有许多不同php版本的项目,在终端需要经常切换版本,来执行不同的php版本命令,这个时候每次都需要去面板的php版本管理的地方,手动将php版本添加的环境变量,操作多了就很麻烦,是否可以增加终端直接切换php版本的功能,类似于mac的 brew-php-switcher php版本 这个命令,那就更方便了
The text was updated successfully, but these errors were encountered: