Created
March 30, 2018 21:19
-
-
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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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