Created
October 26, 2022 12:04
-
-
Save semihkeskindev/a2bf8468e1aedbdeaf4f6728e722e8c2 to your computer and use it in GitHub Desktop.
Ubuntu Alias Command of Switch between php versions
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
php-switch () { | |
local phpVersion="$1" | |
sudo update-alternatives --set php /usr/bin/php"$1" > /dev/null | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment