[zsh] change cache directory
This commit is contained in:
parent
487733b264
commit
5750c11ce6
|
@ -1,10 +1,3 @@
|
||||||
/zsh/custom
|
/zsh/custom
|
||||||
/zsh/cache
|
|
||||||
*.pyc
|
*.pyc
|
||||||
|
|
||||||
/ansible/hosts
|
|
||||||
/ansible/*.retry
|
|
||||||
|
|
||||||
/smth
|
|
||||||
/.vscode
|
|
||||||
/hammerspoon/Spoons
|
/hammerspoon/Spoons
|
||||||
|
|
|
@ -1,5 +1,10 @@
|
||||||
#!/usr/bin/env zsh
|
#!/usr/bin/env zsh
|
||||||
|
|
||||||
|
ZSH_CACHE_DIR="$HOME/.cache/dotfiles"
|
||||||
|
if [[ ! -d "$ZSH_CACHE_DIR" ]]; then
|
||||||
|
mkdir -pv "$ZSH_CACHE_DIR"
|
||||||
|
fi
|
||||||
|
|
||||||
source "$ZSH_DOTFILES/zplg.zsh"
|
source "$ZSH_DOTFILES/zplg.zsh"
|
||||||
|
|
||||||
plugin completions 'zsh-users/zsh-completions'
|
plugin completions 'zsh-users/zsh-completions'
|
||||||
|
@ -36,8 +41,6 @@ plugin completions 'zsh-users/zsh-completions'
|
||||||
|
|
||||||
# Oh-My-Zsh {{{
|
# Oh-My-Zsh {{{
|
||||||
|
|
||||||
ZSH_CACHE_DIR="$ZSH_DOTFILES/cache"
|
|
||||||
|
|
||||||
# disable automatic updates because OMZ is managed by my plugin manager
|
# disable automatic updates because OMZ is managed by my plugin manager
|
||||||
DISABLE_AUTO_UPDATE=true
|
DISABLE_AUTO_UPDATE=true
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue