Automatically create ZSH_CACHE folder

This commit is contained in:
ItsDrike 2022-08-23 10:55:04 +02:00
parent 72d363ab1b
commit 53e96c5854
No known key found for this signature in database
GPG key ID: B014E761034AF742

View file

@ -23,6 +23,7 @@ setopt auto_pushd # Make cd act as pushd
export ZSH_CACHE="$HOME/.cache/zsh" export ZSH_CACHE="$HOME/.cache/zsh"
export HISTFILE="$ZSH_CACHE/history" export HISTFILE="$ZSH_CACHE/history"
export ZSH_COMPDUMP="$ZSH_CACHE/zcompdump-$ZSH_VERSION" export ZSH_COMPDUMP="$ZSH_CACHE/zcompdump-$ZSH_VERSION"
mkdir -p "$ZSH_CACHE"
# Auto-remove home clutter # Auto-remove home clutter
[ -f ~/.zsh-update ] && mv ~/.zsh-update $ZSH_CACHE/.zsh-update [ -f ~/.zsh-update ] && mv ~/.zsh-update $ZSH_CACHE/.zsh-update