update mac & linux reset script

Signed-off-by: pengzhile <pengzhile@gmail.com>
pull/6/MERGE
pengzhile 2020-10-13 16:03:20 +08:00
parent d1c6256b0d
commit 65e19f94b7
1 changed files with 2 additions and 0 deletions

View File

@ -14,6 +14,7 @@ if [ "$OS_NAME" == "Darwin" ]; then
sed -i '' '/name="evlsprt.*"/d' ~/Library/Application\ Support/JetBrains/"${PRD}"*/options/other.xml >/dev/null 2>&1
done
rm -rf ~/Library/Preferences/jetbrains.*.*.plist
plutil -remove "/.JetBrains\.UserIdOnMachine" ~/Library/Preferences/com.apple.java.util.prefs.plist >/dev/null
plutil -remove "/.jetbrains/.user_id_on_machine" ~/Library/Preferences/com.apple.java.util.prefs.plist >/dev/null
plutil -remove "/.jetbrains/.device_id" ~/Library/Preferences/com.apple.java.util.prefs.plist >/dev/null
@ -30,6 +31,7 @@ elif [ "$OS_NAME" == "Linux" ]; then
sed -i '/key="JetBrains\.UserIdOnMachine"/d' ~/.java/.userPrefs/prefs.xml
sed -i '/key="device_id"/d' ~/.java/.userPrefs/jetbrains/prefs.xml
sed -i '/key="user_id_on_machine"/d' ~/.java/.userPrefs/jetbrains/prefs.xml
find ~/.java/.userPrefs/jetbrains/ -name "evlsprt*" -type d -exec rm -rf {} \; >/dev/null 2>&1
else
echo 'unsupport'
exit