Skip to content

Instantly share code, notes, and snippets.

@nickpelton
Created July 20, 2022 20:43
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save nickpelton/5240aaa97f2eaf288fc4f7667f4d1129 to your computer and use it in GitHub Desktop.
Save nickpelton/5240aaa97f2eaf288fc4f7667f4d1129 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