98bd19a036c0c702591f456e1081e420ffb17ce0
- Author
- Denis Cornehl <denis.cornehl@gmail.com>
- Committer
- Denis Cornehl <denis.cornehl@gmail.com>
- Date
Message
plugin last-working-dir: create cache-directory if it doesn't exist
Diff
1diff --git a/plugins/last-working-dir/last-working-dir.plugin.zsh b/plugins/last-working-dir/last-working-dir.plugin.zsh
2index 5b3121d11d1992b2377cdf111f1d931a0b570bc1..190bc279d505cc9c985023f10a12ee694dbd3067 100644
3--- a/plugins/last-working-dir/last-working-dir.plugin.zsh
4+++ b/plugins/last-working-dir/last-working-dir.plugin.zsh
5@@ -4,6 +4,7 @@
6
7 # Flag indicating if we've previously jumped to last directory.
8 typeset -g ZSH_LAST_WORKING_DIRECTORY
9+mkdir -p "$ZSH/cache"
10 local cache_file="$ZSH/cache/last-working-dir"
11
12 # Updates the last directory once directory is changed.