From 9729aa0c3fae5e4cbe5a25b441cc7e80fabb2a8d Mon Sep 17 00:00:00 2001 From: Bartek Stalewski Date: Sun, 7 Nov 2021 14:58:40 +0100 Subject: [PATCH] I'm tired of puthing cache each reboot. --- install.sh | 2 +- zsh/.zshrc | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 16c9428..ee81662 100644 --- a/install.sh +++ b/install.sh @@ -38,7 +38,7 @@ echo "skip_global_compinit=1" > $HOME/.zshenv echo "export XDG_DATA_HOME=$HOME/.local/share" >> $HOME/.zshenv case $(uname -s) in Darwin) echo "export XDG_CACHE_HOME=$HOME/Library/Caches" >> $HOME/.zshenv;; - Linux) echo 'export XDG_CACHE_HOME=/tmp/.${USER}-cache' >> $HOME/.zshenv;; + Linux) echo "export XDG_CACHE_HOME=$HOME/.cache" >> $HOME/.zshenv;; esac echo "export XDG_CONFIG_HOME=$HOME/.config" >> $HOME/.zshenv echo "export ZDOTDIR=$HOME/.config/zsh" >> $HOME/.zshenv diff --git a/zsh/.zshrc b/zsh/.zshrc index bbbb4a5..ba6ccb6 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -13,7 +13,6 @@ export VIMINIT='let $MYVIMRC="$XDG_CONFIG_HOME/vim/vimrc" | source $MYVIMRC' export MANPAGER="vim -R -M +MANPAGER" export LESSHISTFILE='/dev/null' -[ ! -L ~/.cache ] && { rm -rf ~/.cache; ln -sf $XDG_CACHE_HOME ~/.cache ; } mkdir -p $XDG_DATA_HOME/zsh mkdir -p $XDG_CACHE_HOME/zsh zstyle ':completion:*' menu select