Fix path_helper
usage
The output of `path_helper` needs to be `eval`ed for it to work.
This commit is contained in:
parent
00a49bf8e1
commit
57578cf91a
@ -50,7 +50,7 @@ homebrew-shellenv() {
|
|||||||
echo "setenv HOMEBREW_REPOSITORY ${HOMEBREW_REPOSITORY};"
|
echo "setenv HOMEBREW_REPOSITORY ${HOMEBREW_REPOSITORY};"
|
||||||
if [[ -n "${PATH_HELPER_ROOT}" ]]
|
if [[ -n "${PATH_HELPER_ROOT}" ]]
|
||||||
then
|
then
|
||||||
echo "PATH_HELPER_ROOT=\"${PATH_HELPER_ROOT}\" /usr/libexec/path_helper -c"
|
echo "eval \`PATH_HELPER_ROOT=\"${PATH_HELPER_ROOT}\" /usr/libexec/path_helper -c\`;"
|
||||||
else
|
else
|
||||||
echo "setenv PATH ${HOMEBREW_PREFIX}/bin:${HOMEBREW_PREFIX}/sbin:\$PATH;"
|
echo "setenv PATH ${HOMEBREW_PREFIX}/bin:${HOMEBREW_PREFIX}/sbin:\$PATH;"
|
||||||
fi
|
fi
|
||||||
@ -75,7 +75,7 @@ homebrew-shellenv() {
|
|||||||
fi
|
fi
|
||||||
if [[ -n "${PATH_HELPER_ROOT}" ]]
|
if [[ -n "${PATH_HELPER_ROOT}" ]]
|
||||||
then
|
then
|
||||||
echo "PATH_HELPER_ROOT=\"${PATH_HELPER_ROOT}\" /usr/libexec/path_helper -s"
|
echo "eval \"\$(PATH_HELPER_ROOT=\"${PATH_HELPER_ROOT}\" /usr/libexec/path_helper -s)\""
|
||||||
else
|
else
|
||||||
echo "export PATH=\"${HOMEBREW_PREFIX}/bin:${HOMEBREW_PREFIX}/sbin\${PATH+:\$PATH}\";"
|
echo "export PATH=\"${HOMEBREW_PREFIX}/bin:${HOMEBREW_PREFIX}/sbin\${PATH+:\$PATH}\";"
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user