diff options
author | Ville Lautanala <lautis@gmail.com> | 2020-02-28 21:01:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-28 20:01:14 +0100 |
commit | c3984a775994645b8fb9ef7f714a92edb7baf5ac (patch) | |
tree | 9ec7abe536525c0cb8dd0ca2a4b1b5f3127f142b /plugins/fasd | |
parent | 5023a4787bee5da4a47a3155f3f7a3ee3cee155c (diff) | |
download | zsh-c3984a775994645b8fb9ef7f714a92edb7baf5ac.tar.gz zsh-c3984a775994645b8fb9ef7f714a92edb7baf5ac.tar.bz2 zsh-c3984a775994645b8fb9ef7f714a92edb7baf5ac.zip |
fasd: cache full fasd initialisation script (#6097)
Using `fasd —-init auto` will first detect terminal and then call
fasd again to generate the final initialisation script. Caching that gives a more significant performance boost.
Diffstat (limited to 'plugins/fasd')
-rw-r--r-- | plugins/fasd/fasd.plugin.zsh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/fasd/fasd.plugin.zsh b/plugins/fasd/fasd.plugin.zsh index ec2e5183a..cdf99708c 100644 --- a/plugins/fasd/fasd.plugin.zsh +++ b/plugins/fasd/fasd.plugin.zsh @@ -1,7 +1,8 @@ if [ $commands[fasd] ]; then # check if fasd is installed fasd_cache="${ZSH_CACHE_DIR}/fasd-init-cache" if [ "$(command -v fasd)" -nt "$fasd_cache" -o ! -s "$fasd_cache" ]; then - fasd --init auto >| "$fasd_cache" + fasd --init posix-alias zsh-hook zsh-ccomp zsh-ccomp-install \ + zsh-wcomp zsh-wcomp-install >| "$fasd_cache" fi source "$fasd_cache" unset fasd_cache |