Skip to content

Instantly share code, notes, and snippets.

@keenahn
Forked from dreadatour/gist:7475747
Last active August 29, 2015 14:08
Show Gist options
  • Save keenahn/56d7435b02cc3ab66c0a to your computer and use it in GitHub Desktop.
Save keenahn/56d7435b02cc3ab66c0a to your computer and use it in GitHub Desktop.
Remove all default Sublime Text 3 snippets for Python language
# Sublime Text 3 languages list:
ls -1 /Applications/Sublime\ Text.app/Contents/MacOS/Packages/
# Remove all default Sublime Text 3 snippets for Python language
export ST3_LANG="Python"
mkdir -p ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/$ST3_LANG/
unzip -l /Applications/Sublime\ Text.app/Contents/MacOS/Packages/$ST3_LANG.sublime-package | grep '.sublime-snippet' | awk '{print $4}' | while read f; do touch ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/$ST3_LANG/$f; done
unset ST3_LANG
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment