goland破解办法

#!/bin/sh

# reset jetbrains ide evals

OS_NAME=$(uname -s)

JB_PRODUCTS="IntelliJIdea CLion PhpStorm GoLand PyCharm WebStorm Rider DataGrip RubyMine AppCode"

if [ $OS_NAME == "Darwin" ]; then

echo 'macOS:'

for PRD in $JB_PRODUCTS; do

rm -rf ~/Library/Preferences/${PRD}*/eval

rm -rf ~/Library/Application Support/JetBrains/${PRD}*/eval

done

elif [ $OS_NAME == "Linux" ]; then

echo 'Linux:'

for PRD in $JB_PRODUCTS; do

rm -rf ~/.${PRD}*/config/eval

rm -rf ~/.config/${PRD}*/eval

done

else

echo 'unsupport'

exit

fi

echo 'done.'