[issue1933] Zsh: modify activation of completion caching

Thilo Six bts at bts.grml.org
Wed Oct 7 20:13:06 CEST 2015


New submission from Thilo Six <tech at xk2c.de>:

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

----------
files: 0001-modify-activation-of-completion-caching.patch
messages: 5574
nosy: Xk2c
priority: wish
status: unread
title: Zsh: modify activation of completion caching
topic: zsh

_____________________________________
GRML issue tracker <bts at bts.grml.org>
<http://bts.grml.org/grml/issue1933>
_____________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-modify-activation-of-completion-caching.patch
Type: text/x-diff
Size: 2366 bytes
Desc: not available
URL: <http://ml.grml.org/pipermail/bugs-changes/attachments/20151007/007c6716/attachment.patch>


More information about the Bugs-changes mailing list