Skip to content

Instantly share code, notes, and snippets.

@mudassaralichouhan
Last active January 8, 2023 08:08
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 mudassaralichouhan/89dcae3d5d451a70cf23fe4084f82b75 to your computer and use it in GitHub Desktop.
Save mudassaralichouhan/89dcae3d5d451a70cf23fe4084f82b75 to your computer and use it in GitHub Desktop.
for product in IntelliJIdea WebStorm DataGrip PhpStorm CLion PyCharm GoLand RubyMine; do
echo "Resetting trial period for $product"
echo "removing evaluation key..."
rm -rf ~/.config/$product*/eval
# Above path not working on latest version. Fixed below
rm -rf ~/.config/JetBrains/$product*/eval
echo "removing all evlsprt properties in options.xml..."
sed -i 's/evlsprt//' ~/.config/$product*/options/other.xml
# Above path not working on latest version. Fixed below
sed -i 's/evlsprt//' ~/.config/JetBrains/$product*/options/other.xml
echo
done
echo "removing userPrefs files..."
rm -rf ~/.java/.userPrefs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment