BTS

Message5574

Author Xk2c
Recipients Xk2c
Date 2015-10-07.18:13:06
Content
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
File name Uploaded
0001-modify-activation-of-completion-caching.patch Xk2c, 2015-10-07.18:13:06
History
Date User Action Args
2015-10-07 18:13:06Xk2csetrecipients: + Xk2c
2015-10-07 18:13:06Xk2csetmessageid: <1444241586.52.0.719290837734.issue1933@bts.grml.org>
2015-10-07 18:13:06Xk2clinkissue1933 messages
2015-10-07 18:13:06Xk2ccreate