Created
June 22, 2022 22:48
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
megapint() { | |
PINT=$([ -f "vendor/bin/pint" ] && echo "vendor/bin/pint" || echo "pint") | |
"$PINT" --preset laravel $@ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
(To install, just append the snippet above into your
~/.zshrc
~/.bashrc
or~/.bash_profile
file)