Skip to content

Instantly share code, notes, and snippets.

@cfg
Created August 15, 2013 20:07
Show Gist options
  • Select an option

  • Save cfg/6244326 to your computer and use it in GitHub Desktop.

Select an option

Save cfg/6244326 to your computer and use it in GitHub Desktop.
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"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment