Hello grml folks,
again i come here with a itch in grmls zshrc which i would like to see to get fixed.
When i started using grmls zshrc i wondered why completion sometimes is soo
slow. Some back and forth later i now nailed it down.
---<---<---<---<---<---<---<---<---<---<---<---<---<---<---<---<---<
# caching
[[ -d $ZSHDIR/cache ]] && zstyle ':completion:*' use-cache yes && \
zstyle ':completion::complete:*' cache-path
$ZSHDIR/cache/
---<---<---<---<---<---<---<---<---<---<---<---<---<---<---<---<---<
Since i didn't had this directory this did not work for me.
The attached patch should improve this.
Additional features:
* Completion caching is now activated by default. It can be turned off by
setting $GRML_NO_COMPLCACHING to s.th. non-zero prior to sourcing grmls
zshrc.
* location of completion cache dir is now configurable via
$GRML_COMPLCACHE_DIR
Please have a look into this patch and eventually include it.
A hint about this patch:
I am not sure whether completion caching is wanted on live cds.
If not this should be straight forward to implement, espacially with this
patch applied. ;)
kind regards,
Thilo Six |