Skip to content

Instantly share code, notes, and snippets.

@toctan
Created May 29, 2013 01:57
Show Gist options
  • Save toctan/5667464 to your computer and use it in GitHub Desktop.
Save toctan/5667464 to your computer and use it in GitHub Desktop.
A shell script to clean up textmate imported yasnippets.
UNIMPLEMENTED=$(grep -nr 'yas-unimplemented' $1 | cut -d: -f 1 | uniq)
while read -r LINE; do
if [[ "$LINE" != *yas-setup.el* ]]; then
rm "$LINE"
fi
done <<< "$UNIMPLEMENTED"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment