Skip to content

Instantly share code, notes, and snippets.

@flaviusb
Forked from changx03/change_cache_dir.sh
Last active September 26, 2023 00:35
Show Gist options
  • Save flaviusb/289d10a27cebb4c9dc4480e06aab6155 to your computer and use it in GitHub Desktop.
Save flaviusb/289d10a27cebb4c9dc4480e06aab6155 to your computer and use it in GitHub Desktop.
Change Ubuntu cache directory on remove server
#!/bin/bash
export XDG_CACHE_HOME="/data/${USER}/.cache"
export PIP_CACHE_DIR="/data/${USER}/.cache"
@flaviusb
Copy link
Author

flaviusb commented Sep 26, 2023

Original credit to @changx03 - I just modified it slightly to make it a drop in .profile.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment