Created
June 23, 2025 15:29
-
-
Save mudassaralichouhan/88e4bcc09bce506b9f4b12f056c08b1a to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/bin/sh | |
# Script to reset trial period for PhpStorm 2025.1.1 on macOS | |
product="PhpStorm" | |
echo "Closing $product" | |
ps aux | grep -i "$product" | grep -v grep | awk '{print $2}' | xargs kill -9 | |
echo "Resetting trial period for $product" | |
echo "Removing evaluation key..." | |
rm -rf ~/Library/Preferences/$product*/eval | |
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 | |
sed -i '' '/evlsprt/d' ~/Library/Application\ Support/JetBrains/$product*/options/other.xml | |
echo | |
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
It looks like you have a comprehensive script and guide for resetting the trial period of JetBrains IDEs on macOS. Below, I will provide a modified version of your script specifically for PhpStorm 2025.1.1 and include additional instructions for uninstalling and reinstalling the IDE, as well as resetting the trial period.
Modified Script for PhpStorm 2025.1.1
Steps to Completely Uninstall and Reinstall PhpStorm
Quit PhpStorm:
Remove the Application:
Delete User Configuration and Caches:
~/Library/Application Support/JetBrains/
and delete the folder named PhpStorm2025.1.~/Library/Caches/JetBrains/
and delete the PhpStorm2025.1 cache directory.~/Library/Preferences/
for any JetBrains or PhpStorm-specific files and delete them, including any.plist
files.Empty Trash:
Run the Reset Script:
reset_phpstorm_trial.sh
.Reinstall PhpStorm:
.dmg
file and drag the PhpStorm icon into your Applications folder.Start PhpStorm:
Resetting the Free Trial:
Disclaimer
Please note that attempting to reset the trial period may violate JetBrains' terms of service. The recommended approach is to purchase a license or contact JetBrains for an extended evaluation if needed. Use the above methods at your own risk.