cfg
8/15/2013 - 8:07 PM

Install in /usr/local/bin/notify-compass and chmod +x it

Install in /usr/local/bin/notify-compass and chmod +x it

#!/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"