Skip to content

Instantly share code, notes, and snippets.

@debu999
Created July 28, 2021 02:51
Show Gist options
  • Save debu999/22df48ce872540740f39e2abc5e7d10b to your computer and use it in GitHub Desktop.
Save debu999/22df48ce872540740f39e2abc5e7d10b to your computer and use it in GitHub Desktop.
#!/bin/bash
echo "removing evaluation key..."
# in mac you can look at installed version and then delete the evaluation file. Big Sur OS Version.
rm -rfv ~/Library/Application\ Support/JetBrains/IntelliJIdea2021.1/eval
echo "resetting evalsprt in other.xml ... "
sed -i '' '/evlsprt/d' ~/Library/Application\ Support/JetBrains/IntelliJIdea2021.1/options/other.xml
defaults delete com.apple.java.util.prefs 2> /dev/null
echo "removing additional plist files..."
rm -f ~/Library/Preferences/com.apple.java.util.prefs.plist
rm -f ~/Library/Preferences/com.jetbrains.*.plist
rm -f ~/Library/Preferences/jetbrains.*.*.plist
echo "restarting cfprefsd"
killall cfprefsd
echo
echo "That's it, enjoy ;)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment