mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2024-12-26 13:14:35 +00:00
Automatically create ZSH_CACHE folder
This commit is contained in:
parent
72d363ab1b
commit
53e96c5854
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue