From 245993152b10385c8228f1a09a617263c366e751 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Maty=C3=A1=C5=A1ek?= Date: Thu, 14 Apr 2022 11:20:39 +0200 Subject: [PATCH] Move CUDA cache to XDG_CACHE_HOME Addresses https://github.com/matyama/configs/issues/17 - Adds `CUDA_CACHE_PATH` environment variable to `.zshenv` and points it to `XDG_CACHE_HOME` Since the directory is a cache, there are generally two options how to migrate: - Simply drop the `~/.nv` directory - Reload shell and move/rename it: `mv ~/.nv $CUDA_CACHE_PATH` --- .config/zsh/.zshenv | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.config/zsh/.zshenv b/.config/zsh/.zshenv index b295650..5a5c264 100644 --- a/.config/zsh/.zshenv +++ b/.config/zsh/.zshenv @@ -37,6 +37,9 @@ export VIMRC=${XDG_CONFIG_HOME}/nvim/init.vim export NAME="Martin Matyášek" export EMAIL=martin.matyasek@gmail.com +# CUDA +export CUDA_CACHE_PATH=${XDG_CACHE_HOME}/nv + # Binenv export BINENV_HOME=${HOME}/.binenv