zshrc: Add more robustness to completion caching setup [Closes: issue1933]
authorFrank Terbeck <ft@grml.org>
Fri, 9 Oct 2015 14:16:16 +0000 (16:16 +0200)
committerFrank Terbeck <ft@grml.org>
Fri, 9 Oct 2015 18:55:21 +0000 (20:55 +0200)
commitfd3a55f78b1e316727760a92dcd3f0759013549c
tree920091daddbbf560e2c3f9f93308b4fae13bd084
parent21c8c5cf7e67b38bf42cdc19af6629fd6346d8f0
zshrc: Add more robustness to completion caching setup [Closes: issue1933]

This is based on a suggestion by Thilo Six <tech@xk2c.de>.

The setup now uses $GRML_COMP_CACHING to decide on whether to configure
caching at all and $GRML_COMP_CACHE_DIR to tell where to put the caching
data.

It also makes sure the caching directory actually exists before using it.

See the included documentation for details.

Signed-off-by: Frank Terbeck <ft@grml.org>
doc/grmlzshrc.t2t
etc/zsh/zshrc