Skip to content

Instantly share code, notes, and snippets.

@kopepasah
Created August 2, 2018 15:33
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kopepasah/64dc43405b430c3e1bae724a2a7f79cd to your computer and use it in GitHub Desktop.
Save kopepasah/64dc43405b430c3e1bae724a2a7f79cd to your computer and use it in GitHub Desktop.
Shortcut for using WP Snapshots in wp-local-docker: https://github.com/10up/wp-local-docker#wp-snapshots
#!/usr/bin/env bash
# Shortcut for WP Snapshots usage in wp-local-docker
#
# @link: https://github.com/10up/wp-local-docker#wp-snapshots
function snap() {
if [ -f "$PWD/bin/wpsnapshots.sh" ]; then
sh ./bin/wpsnapshots.sh "$@"
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment