Browse Source

Merge pull request #1463 from syphar/fix_last_working_dir

plugin last-working-dir: create cache-directory if it doesn't exist
Robby Russell 12 years ago
parent
commit
1ad2104d7a
1 changed files with 1 additions and 0 deletions
  1. 1 0
      plugins/last-working-dir/last-working-dir.plugin.zsh

+ 1 - 0
plugins/last-working-dir/last-working-dir.plugin.zsh

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