We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 01a2c1e commit 88559bdCopy full SHA for 88559bd
bin/phpenv-install.sh
@@ -30,7 +30,8 @@ phpenv_script() {
30
31
cat <<SH
32
#!/usr/bin/env bash
33
-export RBENV_ROOT='$root'
+export PHPENV_ROOT=\${PHPENV_ROOT:-'$root'}
34
+export RBENV_ROOT="\$PHPENV_ROOT"
35
exec "\$RBENV_ROOT/libexec/rbenv" "\$@"
36
SH
37
}
@@ -77,6 +78,8 @@ else
77
78
sed -i -s 's/\.rbenv-version/.phpenv-version/g' "$PHPENV_ROOT"/libexec/rbenv-version-file
79
sed -i -s 's/\.ruby-version/.php-version/g' "$PHPENV_ROOT"/libexec/rbenv-local
80
sed -i -s 's/\.ruby-version/.php-version/g' "$PHPENV_ROOT"/libexec/rbenv-version-file
81
+ sed -i -e 's/\(^\|[^/]\)rbenv/\1phpenv/g' "$PHPENV_ROOT"/libexec/rbenv-init
82
+ sed -i -e 's/\phpenv-commands/rbenv-commands/g' "$PHPENV_ROOT"/libexec/rbenv-init
83
fi
84
85
0 commit comments