parent
ce3591f697
commit
f7b3d92ce5
|
@ -4,23 +4,23 @@
|
||||||
OS_NAME=$(uname -s)
|
OS_NAME=$(uname -s)
|
||||||
JB_PRODUCTS="IntelliJIdea CLion PhpStorm GoLand PyCharm WebStorm Rider DataGrip RubyMine AppCode"
|
JB_PRODUCTS="IntelliJIdea CLion PhpStorm GoLand PyCharm WebStorm Rider DataGrip RubyMine AppCode"
|
||||||
|
|
||||||
if [ $OS_NAME == "Darwin" ]; then
|
if [ "$OS_NAME" == "Darwin" ]; then
|
||||||
echo 'macOS:'
|
echo 'macOS:'
|
||||||
|
|
||||||
for PRD in $JB_PRODUCTS; do
|
for PRD in $JB_PRODUCTS; do
|
||||||
rm -rf ~/Library/Preferences/${PRD}*/eval
|
rm -rf ~/Library/Preferences/"${PRD}"*/eval
|
||||||
rm -rf ~/Library/Application\ Support/JetBrains/${PRD}*/eval
|
rm -rf ~/Library/Application\ Support/JetBrains/"${PRD}"*/eval
|
||||||
done
|
done
|
||||||
|
|
||||||
plutil -remove "/.JetBrains\.UserIdOnMachine" ~/Library/Preferences/com.apple.java.util.prefs.plist >/dev/null
|
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/.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
|
plutil -remove "/.jetbrains/.device_id" ~/Library/Preferences/com.apple.java.util.prefs.plist >/dev/null
|
||||||
elif [ $OS_NAME == "Linux" ]; then
|
elif [ "$OS_NAME" == "Linux" ]; then
|
||||||
echo 'Linux:'
|
echo 'Linux:'
|
||||||
|
|
||||||
for PRD in $JB_PRODUCTS; do
|
for PRD in $JB_PRODUCTS; do
|
||||||
rm -rf ~/.${PRD}*/config/eval
|
rm -rf ~/."${PRD}"*/config/eval
|
||||||
rm -rf ~/.config/JetBrains/${PRD}*/eval
|
rm -rf ~/.config/JetBrains/"${PRD}"*/eval
|
||||||
done
|
done
|
||||||
|
|
||||||
sed -i '/key="JetBrains\.UserIdOnMachine"/d' ~/.java/.userPrefs/prefs.xml
|
sed -i '/key="JetBrains\.UserIdOnMachine"/d' ~/.java/.userPrefs/prefs.xml
|
||||||
|
|
Loading…
Reference in New Issue