From 5750c11ce6f6b66c11ec7ce501e1975c1145b8e6 Mon Sep 17 00:00:00 2001 From: Dmytro Meleshko Date: Tue, 27 Aug 2019 12:07:51 +0300 Subject: [PATCH] [zsh] change cache directory --- .gitignore | 7 ------- zsh/plugins.zsh | 7 +++++-- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/.gitignore b/.gitignore index 04ff90a..c3c28ef 100644 --- a/.gitignore +++ b/.gitignore @@ -1,10 +1,3 @@ /zsh/custom -/zsh/cache *.pyc - -/ansible/hosts -/ansible/*.retry - -/smth -/.vscode /hammerspoon/Spoons diff --git a/zsh/plugins.zsh b/zsh/plugins.zsh index 918b6b3..0ab3939 100644 --- a/zsh/plugins.zsh +++ b/zsh/plugins.zsh @@ -1,5 +1,10 @@ #!/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" plugin completions 'zsh-users/zsh-completions' @@ -36,8 +41,6 @@ plugin completions 'zsh-users/zsh-completions' # Oh-My-Zsh {{{ - ZSH_CACHE_DIR="$ZSH_DOTFILES/cache" - # disable automatic updates because OMZ is managed by my plugin manager DISABLE_AUTO_UPDATE=true