Moving /tmp/f-cache out from tmpfs.

This commit is contained in:
Bartek Stalewski 2023-07-19 15:04:09 +02:00
parent d64b346014
commit 0f37d04702
2 changed files with 3 additions and 4 deletions

View File

@ -1,5 +1,5 @@
skip_global_compinit=1
export XDG_CACHE_HOME=/tmp/${USER}-cache
export XDG_CACHE_HOME=$HOME/.cache
export XDG_CONFIG_HOME=$HOME/.config
export XDG_DATA_HOME=$HOME/.local/share
export XDG_STATE_HOME=$HOME/.local/state

View File

@ -1,8 +1,7 @@
# prepare directories
if [[ ! -L ~/.cache ]]; then
rm -rf ~/.cache
if [[ -L $XDG_CACHE_HOME ]]; then
rm -rf $XDG_CACHE_HOME
mkdir -p $XDG_CACHE_HOME
ln -sf $XDG_CACHE_HOME ~/.cache
fi
mkdir -p $XDG_DATA_HOME/zsh
mkdir -p $XDG_CACHE_HOME/zsh