-
-
Save Sequoia/2f823191556da2720c6f to your computer and use it in GitHub Desktop.
`com` wrapper for composer (for mac) that pops up alert when composer exits
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
#!/usr/bin/env bash | |
composer $* | |
if [[ $? -eq 0 ]]; then | |
osascript -e 'display notification "composer exited 0 ✨" with title "🔵 Success"' | |
else | |
osascript -e 'display notification "composer exited >0" with title "🔴 Failed"' | |
fi | |
exit $?; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Made this cuz
composer install
tends to take so long I change contexts & forget its running.Use
com [long running composer task]
mostlyupdate
&install
in my experience. Otherwise just regularcomposer ...
to bypass this script.