Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/bin/bash
#https://github.com/PythonicNinja/jetbrains-reset-trial-mac-osx/blob/master/runme.sh
for product in IntelliJIdea WebStorm DataGrip PhpStorm CLion PyCharm GoLand RubyMine Rider; do
echo "Closing $product"
ps aux | grep -i MacOs/$product | cut -d " " -f 5 | xargs kill -9
echo "Resetting trial period for $product"
echo "removing evaluation key..."
rm -rf ~/Library/Preferences/$product*/eval
# Above path not working on latest version. Fixed below
rm -rf ~/Library/Application\ Support/JetBrains/$product*/eval
echo "removing all evlsprt properties in options.xml..."
sed -i '' '/evlsprt/d' ~/Library/Preferences/$product*/options/other.xml
# Above path not working on latest version. Fixed below
sed -i '' '/evlsprt/d' ~/Library/Application\ Support/JetBrains/$product*/options/other.xml
echo
done
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 ;)"
@julianemran

This comment has been minimized.

Copy link

@julianemran julianemran commented Mar 8, 2021

Thank you

@harishsp

This comment has been minimized.

Copy link

@harishsp harishsp commented Mar 11, 2021

Thank you

@qsmammar

This comment has been minimized.

Copy link

@qsmammar qsmammar commented Mar 14, 2021

you saved my day :)

@aacassandra

This comment has been minimized.

Copy link

@aacassandra aacassandra commented Apr 28, 2021

still works 100% on Apr 2021. thanks brother

@blazeur

This comment has been minimized.

Copy link

@blazeur blazeur commented May 13, 2021

thanks you guy

@zazagag

This comment has been minimized.

Copy link

@zazagag zazagag commented May 20, 2021

Awesome! Thank you mate!

@jman-schief

This comment has been minimized.

Copy link

@jman-schief jman-schief commented May 24, 2021

I hope you all people thanking for this script won't even find yourself in the position to need someone to buy your software to pay your bills

@CloudDotTech

This comment has been minimized.

Copy link

@CloudDotTech CloudDotTech commented Jun 5, 2021

It's alive...
Thanks, Bro

@Vsumskiy

This comment has been minimized.

Copy link

@Vsumskiy Vsumskiy commented Jun 14, 2021

Thank you!

@adriamuixi

This comment has been minimized.

Copy link

@adriamuixi adriamuixi commented Jun 17, 2021

thank you

@superew

This comment has been minimized.

Copy link

@superew superew commented Jun 27, 2021

thank you

@RangerUA

This comment has been minimized.

Copy link

@RangerUA RangerUA commented Jul 19, 2021

Thank you!

@tossivahva

This comment has been minimized.

Copy link

@tossivahva tossivahva commented Jul 23, 2021

on 23 July 2021 works fine

instruction for lamers:

  1. download reset_idea_trial.sh, then unzip it if needed
  2. open terminal and cd to reset_idea_trial.sh location
  3. run sh reset_idea_trial.sh
  4. enjoy
@MShirazAhmad

This comment has been minimized.

Copy link

@MShirazAhmad MShirazAhmad commented Aug 16, 2021

Works as of today.

@ingkiller

This comment has been minimized.

Copy link

@ingkiller ingkiller commented Sep 6, 2021

muchas a gracias a todos, me ha salvado el día, Saludos

@DroidGar

This comment has been minimized.

Copy link

@DroidGar DroidGar commented Sep 13, 2021

thank you!

@KaungMyat-Min

This comment has been minimized.

Copy link

@KaungMyat-Min KaungMyat-Min commented Sep 13, 2021

I work for me.
PhpStorm 2021.1.2
Build #PS-211.7142.44, built on April 30, 2021

@DVOEII

This comment has been minimized.

Copy link

@DVOEII DVOEII commented Sep 15, 2021

Danke schoen

@smartheye

This comment has been minimized.

Copy link

@smartheye smartheye commented Sep 18, 2021

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment