1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-09-24 17:00:47 +00:00

Merge pull request #1463 from syphar/fix_last_working_dir

plugin last-working-dir: create cache-directory if it doesn't exist
This commit is contained in:
Robby Russell 2012-12-03 07:25:08 -08:00
commit 1ad2104d7a

View file

@ -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.