浏览代码

Update /home/srj/.oh-my-zsh/cache references

Stephen 10 年之前
父节点
当前提交
ceb42ecdb6
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. 2 2
      plugins/last-working-dir/last-working-dir.plugin.zsh
  2. 1 1
      plugins/zsh_reload/zsh_reload.plugin.zsh

+ 2 - 2
plugins/last-working-dir/last-working-dir.plugin.zsh

@@ -4,8 +4,8 @@
 
 # Flag indicating if we've previously jumped to last directory.
 typeset -g ZSH_LAST_WORKING_DIRECTORY
-mkdir -p "$ZSH/cache"
-local cache_file="$ZSH/cache/last-working-dir"
+mkdir -p $ZSH_CACHE_DIR
+local cache_file="$ZSH_CACHE_DIR/last-working-dir"
 
 # Updates the last directory once directory is changed.
 function chpwd() {

+ 1 - 1
plugins/zsh_reload/zsh_reload.plugin.zsh

@@ -1,7 +1,7 @@
 # reload zshrc
 function src()
 {
-  local cache="$ZSH/cache"
+  local cache=$ZSH_CACHE_DIR
   autoload -U compinit zrecompile
   compinit -d "$cache/zcomp-$HOST"