...

PhpStorm ресет на evaluation период

как да подновим PhpStorm за още 30 дни
преди 7 месеца

Малък скрипт, с който се ресетва времето за evaluation период на PhpStorm

#!/bin/bash   

echo "Change time for files"   
find ~/.PhpStorm* -type d -exec touch -t $(date +"%Y%m%d%H%M") {} \;   

echo "removing evaluation key"   
rm ~/.PhpStorm*/config/eval/PhpStorm*.evaluation.key   

echo "resetting evalsprt in options.xml"   
#for version after 2018,3   
sed -i '/evlsprt/d' ~/.PhpStorm*/config/options/other.xml   
# for older versions   
sed -i '/evlsprt/d' ~/.PhpStorm*/config/options/options.xml   

echo "resetting evalsprt in prefs.xml"   
sed -i '/evlsprt/d' ~/.java/.userPrefs/prefs.xml   

echo "removing evals folders"   
rm -rf ~/.java/.userPrefs/jetbrains/phpstorm/   

MacOS:

rm $HOME/Library/Preferences/jetbrains.jetprofile.asset.plist
rm $HOME/Library/Preferences/com.jetbrains.PhpStorm.plist
rm $HOME/Library/Preferences/PhpStorm*/eval/*.key
rm -rf $HOME/Library/Application\ Support/PhpStorm*
sed -i'' -e '/evlsprt/d' $HOME/Library/Preferences/PhpStorm*/options/other.xml

допълнително трием всичко, съдържащо jebrains $HOME/Library/Preferences/com.apple.java.util.prefs.plist