Skip to content

Instantly share code, notes, and snippets.

@cliffordp
Forked from nickpelton/localwp-no-conflict.sh
Created July 20, 2022 22:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cliffordp/570cad6a6339881aafe5bf94c23ee40a to your computer and use it in GitHub Desktop.
Save cliffordp/570cad6a6339881aafe5bf94c23ee40a to your computer and use it in GitHub Desktop.
zsh avoid conflicts with localwp shell and custom php, mysql, or other custom binaries
# Don't load custom stuff if LocalWP shell
if [[ -z ${PHPRC+z} ]]
then
echo "Export custom binaries"
# Eg.
# export PATH="/opt/homebrew/opt/php@7.4/bin:$PATH"
# export PATH="/opt/homebrew/opt/mysql-client/bin:$PATH"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment