Skip to content

Instantly share code, notes, and snippets.

@Sequoia
Last active August 29, 2015 14:15
Show Gist options
  • Save Sequoia/2f823191556da2720c6f to your computer and use it in GitHub Desktop.
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
#!/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 $?;
@Sequoia
Copy link
Author

Sequoia commented Feb 11, 2015

Made this cuz composer install tends to take so long I change contexts & forget its running.

Use com [long running composer task] mostly update & install in my experience. Otherwise just regular composer ... to bypass this script.

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