Created
April 7, 2020 20:16
-
-
Save empjustine/394e02ed42423788e06089a4fbac67df to your computer and use it in GitHub Desktop.
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 | |
# https://www.jetbrains.com/help/idea/working-with-projects.html#invalidate-cache | |
# https://intellij-support.jetbrains.com/hc/en-us/articles/206544519 | |
# https://www.jetbrains.com/help/idea/2019.3/tuning-the-ide.html#default-dirs | |
# https://www.jetbrains.com/help/idea/2020.1/tuning-the-ide.html#default-dirs | |
# .IntelliJIdea20???? (IntelliJ IDEA Ultimate Edition) | |
# .IdeaIC20???? (IntelliJ IDEA Community Edition) | |
# .PyCharmCE20???? | |
# .PyCharm20???? | |
# The IntelliJ IDEA system directory contains caches and local history files. | |
# /system/ | |
# The IntelliJ IDEA logs directory contains product logs and thread dumps. | |
# /system/log | |
for d in ${HOME}/.{IntelliJIdea20,IdeaIC20,PyCharmCE20,PyCharm20}*/system; do | |
if [ -d "${d}" ] ; then | |
printf 'invalidating %s\n' "${d}" | |
rm -rf "${d}" | |
else | |
printf 'folder is missing %s\n' "${d}" | |
fi | |
done |
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/sh | |
find '.' -type d -name '.git' -exec git --git-dir={} --work-tree=${PWD}/{}/.. fetch --all --tags --verbose --progress ';' |
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/sh | |
find '.' -name 'pom.xml' -type f -exec mvn clean --file '{}' ';' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment