php tools misc

This commit is contained in:
2024-07-31 23:35:38 +08:00
parent bf970f58cd
commit 4014f83402
6 changed files with 18 additions and 18 deletions

View File

@@ -16,11 +16,11 @@ installed() {
COMPOSER_GLOBAL_HOME="$(composer config -g home)"
NEWPATH="export PATH=\"$COMPOSER_GLOBAL_HOME/vendor/bin:\${PATH}\""
cat "${HOME}/.profile" | grep -qoh "$NEWPATH" || {
cat "$HOME/.profile" | grep -qoh "$NEWPATH" || {
$NEWPATH
echo "$NEWPATH" >> "${HOME}/.profile"
echo "$NEWPATH" >> "$HOME/.profile"
}
source "${HOME}/.profile"
source "$HOME/.profile"
composer global require phpunit/phpunit --dev