Skip to content

Instantly share code, notes, and snippets.

@subchen
Created December 3, 2017 11:20
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save subchen/49c41caf9ded76234167d2b089ac1132 to your computer and use it in GitHub Desktop.
Save subchen/49c41caf9ded76234167d2b089ac1132 to your computer and use it in GitHub Desktop.
删除 WebStorm 30 days
#!/bin/sh
set -e
set -x
defaults delete com.apple.java.util.prefs || true
for f in ~/Library/Preferences/jetbrains.*.plist; do
if [[ -f $f ]]; then
fn=${f##*/}; key=${fn%.plist}
echo delete $key from pref and file $f
defaults delete "${fn%.plist}" || true
rm -f $f
fi
done
rm -fr ~/Library/Preferences/IntelliJIdea*/eval
rm -fr ~/Library/Preferences/WebStorm*/eval
# echo registred key is here: ~/Library/Preferences/XXX/*.key
for f in ~/Library/Preferences/*/options/options.xml; do
echo Updating $f ...
cp -f $f $f.bak
grep -v evlsprt $f.bak > $f
done
echo Completed!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment