Created
March 5, 2018 04:54
-
-
Save droibit/31ffdc332539920aea54200186cc2e08 to your computer and use it in GitHub Desktop.
Clean up IntelliJ IDEA CE.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
version=$1 | |
if [[ $version =~ ^20[0-9]{2}\.[0-9]{1,3}$ ]]; then | |
echo "Clean up IntelliJ CE $version." | |
else | |
echo "You should specify the version(e.g. 2017.2) of IntelliJ." | |
exit 1 | |
fi | |
rm -rfv $HOME/Library/Application\ Support/IdeaIC$version | |
rm -rfv $HOME/Library/Caches/IdeaIC$version | |
rm -rfv $HOME/Library/Logs/IdeaIC$version | |
rm -rfv $HOME/Library/Preferences/IdeaIC$version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment