浏览代码

style(core): make alternative cache directory equivalent to Arch Linux package

The oh-my-zsh-git package sets the cache directory to `$HOME/.cache/oh-my-zsh`, so
Oh My Zsh will be compatible with it.
Marc Cornellà 2 年之前
父节点
当前提交
93b557e291
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      oh-my-zsh.sh

+ 1 - 1
oh-my-zsh.sh

@@ -9,7 +9,7 @@ fi
 
 # Make sure $ZSH_CACHE_DIR is writable, otherwise use a directory in $HOME
 if [[ ! -w "$ZSH_CACHE_DIR" ]]; then
-  ZSH_CACHE_DIR="${XDG_CACHE_HOME:-$HOME/.cache}/ohmyzsh"
+  ZSH_CACHE_DIR="${XDG_CACHE_HOME:-$HOME/.cache}/oh-my-zsh"
 fi
 
 # Create cache and completions dir and add to $fpath