Skip to content

Instantly share code, notes, and snippets.

@JonathanRaiman
Created March 30, 2018 21:19
Show Gist options
  • Save JonathanRaiman/414bf6682e90a2d239fa2ba74ed2cd8f to your computer and use it in GitHub Desktop.
Save JonathanRaiman/414bf6682e90a2d239fa2ba74ed2cd8f to your computer and use it in GitHub Desktop.
Clears out window cache of sublime which can cause issues on boot up (MacOSX)
function clear_subl {
python3 -c "path = '~/Library/Application Support/Sublime Text 3/Local/Auto Save Session.sublime_session'; import os, json; data = json.load(open(os.path.expanduser(path), 'rt')); data['windows'] = []; json.dump(data, open(os.path.expanduser(path), 'wt'))"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment