Created
August 15, 2013 20:07
-
-
Save cfg/6244326 to your computer and use it in GitHub Desktop.
Install in /usr/local/bin/notify-compass and chmod +x it
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
| #!/bin/bash | |
| BASE="/path/to/compass_root_dir" | |
| FILE="$1" | |
| LINE="$2" | |
| shift | |
| shift | |
| /usr/local/bin/growlnotify --image /path/to/a/pretty/compass.ico -n compass-cli --url "subl://open/?file=$BASE/$FILE&line=$LINE" $* | |
| # regex: \s+error.*\(Line (\d+) of ([^:]+): (.*)\) | |
| # Run Command | |
| # Command: echo '\3' | /usr/local/bin/notify-compass '\2' '\1' -t "\2:\1" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment