Skip to content

Instantly share code, notes, and snippets.

@karlhorky
Last active August 29, 2015 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save karlhorky/b0a5de1b1de9ad722613 to your computer and use it in GitHub Desktop.
Save karlhorky/b0a5de1b1de9ad722613 to your computer and use it in GitHub Desktop.
Add line disabling atomic_save if not found in Sublime Text preferences. Fixes ST3 with Vagrant + NFS http://serverfault.com/questions/534507/vagrant-nfs-share-doesnt-show-updated-file-if-size-doesnt-change
# Fixes Sublime Text 3 issue with Vagrant and NFS http://serverfault.com/questions/534507/vagrant-nfs-share-doesnt-show-updated-file-if-size-doesnt-change
SUBLIME_PREFS="$HOME/Library/Application Support/Sublime Text 3/Packages/User/Preferences.sublime-settings"
if ! grep -q atomic_save "$SUBLIME_PREFS"; then
perl -ni -e 'print;if ($.==1) {print " \"atomic_save\": false,\n"}' "$SUBLIME_PREFS"
fi
unset SUBLIME_PREFS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment