Created
September 11, 2018 20:34
-
-
Save ljmccarthy/72af07984c2b9c21579bf398d8b419c0 to your computer and use it in GitHub Desktop.
This file contains 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 | |
CACHEDIR=/tmp/.cache-$USER | |
mkdir "$CACHEDIR" --mode=700 | |
CHROMECACHEDIR=$CACHEDIR/google-chrome | |
mkdir "$CHROMECACHEDIR" --mode=700 | |
if [ "`readlink ~/.cache/google-chrome`" != "$CHROMECACHEDIR" ]; then | |
rm -rf ~/.cache/google-chrome | |
ln -s "$CHROMECACHEDIR" ~/.cache/google-chrome | |
fi | |
MOZCACHEDIR=$CACHEDIR/mozilla | |
mkdir "$MOZCACHEDIR" --mode=700 | |
if [ "`readlink ~/.cache/mozilla`" != "$MOZCACHEDIR" ]; then | |
rm -rf ~/.cache/mozilla | |
ln -s "$MOZCACHEDIR" ~/.cache/mozilla | |
fi | |
THUMBDIR=/tmp/$CACHEDIR/thumbnails | |
mkdir "$THUMBDIR" --mode=700 | |
if [ "`readlink ~/.cache/thumbnails`" != "$THUMBDIR" ]; then | |
rm -rf ~/.cache/thumbnails | |
ln -s "$THUMBDIR" ~/.cache/thumbnails | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment