Skip to content

Instantly share code, notes, and snippets.

@claudiodekker
Created June 22, 2022 22:48
Show Gist options
  • Save claudiodekker/d9ba0f89866818021b02977dc3a39684 to your computer and use it in GitHub Desktop.
Save claudiodekker/d9ba0f89866818021b02977dc3a39684 to your computer and use it in GitHub Desktop.
Opinionated Laravel Pint alias. Prefers a repo-specific version of pint over a globally-installed one, and defaults to use the Laravel preset.
megapint() {
PINT=$([ -f "vendor/bin/pint" ] && echo "vendor/bin/pint" || echo "pint")
"$PINT" --preset laravel $@
}
@claudiodekker
Copy link
Author

(To install, just append the snippet above into your ~/.zshrc ~/.bashrc or ~/.bash_profile file)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment