diff options
author | Denis Cornehl <denis.cornehl@gmail.com> | 2012-12-03 11:06:31 +0100 |
---|---|---|
committer | Denis Cornehl <denis.cornehl@gmail.com> | 2012-12-03 11:13:13 +0100 |
commit | 98bd19a036c0c702591f456e1081e420ffb17ce0 (patch) | |
tree | 5fea60bc79ae3638ed4e84819b438bf28a379a66 /plugins/last-working-dir | |
parent | 51e05b7579a26266a0ed26398ab9eb5071800cd8 (diff) | |
download | zsh-98bd19a036c0c702591f456e1081e420ffb17ce0.tar.gz zsh-98bd19a036c0c702591f456e1081e420ffb17ce0.tar.bz2 zsh-98bd19a036c0c702591f456e1081e420ffb17ce0.zip |
plugin last-working-dir: create cache-directory if it doesn't exist
Diffstat (limited to 'plugins/last-working-dir')
-rw-r--r-- | plugins/last-working-dir/last-working-dir.plugin.zsh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/last-working-dir/last-working-dir.plugin.zsh b/plugins/last-working-dir/last-working-dir.plugin.zsh index 5b3121d11..190bc279d 100644 --- a/plugins/last-working-dir/last-working-dir.plugin.zsh +++ b/plugins/last-working-dir/last-working-dir.plugin.zsh @@ -4,6 +4,7 @@ # 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" # Updates the last directory once directory is changed. |