my xfce4 dotfiles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
847 B

3 years ago
  1. # grunt plugin
  2. This plugin adds completions for [grunt](https://github.com/gruntjs/grunt).
  3. To use it, add `grunt` to the plugins array of your `.zshrc` file:
  4. ```zsh
  5. plugins=(... grunt)
  6. ```
  7. ## Enable caching
  8. If you want to use the cache, set the following in your `.zshrc`:
  9. ```zsh
  10. zstyle ':completion:*' use-cache yes
  11. ```
  12. ## Settings
  13. * Show grunt file path:
  14. ```zsh
  15. zstyle ':completion::complete:grunt::options:' show_grunt_path yes
  16. ```
  17. * Cache expiration days (default: 7):
  18. ```zsh
  19. zstyle ':completion::complete:grunt::options:' expire 1
  20. ```
  21. * Not update options cache if target gruntfile is changed.
  22. ```zsh
  23. zstyle ':completion::complete:grunt::options:' no_update_options yes
  24. ```
  25. Note that if you change the zstyle settings, you should delete the cache file and restart zsh.
  26. ```zsh
  27. $ rm ~/.zcompcache/grunt
  28. $ exec zsh
  29. ```