Skip to content

Instantly share code, notes, and snippets.

@empjustine
Created April 7, 2020 20:16
Show Gist options
  • Save empjustine/394e02ed42423788e06089a4fbac67df to your computer and use it in GitHub Desktop.
Save empjustine/394e02ed42423788e06089a4fbac67df to your computer and use it in GitHub Desktop.
#!/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
#!/bin/sh
find '.' -type d -name '.git' -exec git --git-dir={} --work-tree=${PWD}/{}/.. fetch --all --tags --verbose --progress ';'
#!/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