目前僅針對(duì)自己jetbrains版本在2021.2.2上成功
#!/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.'
保存為.sh文件后,賦予權(quán)限
chmod a+x 你的shell文件名.sh
chmod 777 你的shell文件名.sh
然后通過(guò)終端定位到對(duì)應(yīng)的腳本保存目錄下钱贯,之后./sh文件名運(yùn)行就可以了