Last active
August 29, 2015 14:05
-
-
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
This file contains 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
# 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