summary refs log tree commit diff stats
path: root/install
diff options
context:
space:
mode:
authorAlan Pearce2013-09-13 13:05:06 +0100
committerAlan Pearce2013-09-13 13:05:06 +0100
commit270a82dbed30eb256736b11c0af54aa7d175f56a (patch)
tree9d00b0ccea071e83a06be16f2f97a8a61ad1d457 /install
parent2fd1b9f3cb75a1eaa135bf803c78eb530e024980 (diff)
downloadnixfiles-270a82dbed30eb256736b11c0af54aa7d175f56a.tar.lz
nixfiles-270a82dbed30eb256736b11c0af54aa7d175f56a.tar.zst
nixfiles-270a82dbed30eb256736b11c0af54aa7d175f56a.zip
Make installer create .zsh and .zsh/cache, if necessary
Diffstat (limited to 'install')
-rwxr-xr-xinstall5
1 files changed, 5 insertions, 0 deletions
diff --git a/install b/install
index 40c134f8..16d30c58 100755
--- a/install
+++ b/install
@@ -47,6 +47,11 @@ then
 	emacs --batch --eval '(batch-byte-recompile-directory 0)' ~/.emacs.d/
 fi
 
+if [[ ! -d ~/.zsh/cache ]]
+then
+	mkdir -p ~/.zsh/cache
+fi
+
 fasd_cache=~/.zsh/cache/fasd-init-zsh
 if [[ ! -s "$fasd_cache" || dotfiles/zsh/functions/fasd -nt "$fasd_cache" ]]; then
 	dotfiles/zsh/functions/fasd/fasd --init posix-alias zsh-hook zsh-ccomp zsh-ccomp-install zsh-wcomp zsh-wcomp-install >! "$fasd_cache"