n-env.conf 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. # How should be current element of the list drawn. Possible values: reverse,
  2. # underline.
  3. # On Linux virtual terminal this will be enforced to reverse (because of poor
  4. # underline support on that terminal). The same for screen/tmux.
  5. local active_text=reverse
  6. # (#s) is ^, (#e) is $, # is *, ## is + (comparing to regex)
  7. local NLIST_COLORING_PATTERN="[a-zA-Z0-9_]##"
  8. local NLIST_COLORING_MATCH_MULTIPLE=0
  9. #
  10. # Zshrc integration. All below variables can
  11. # be set in zshrc and will have precedence
  12. # over config files
  13. #
  14. # 1. znt_env_active_text
  15. active_text=${znt_env_active_text:-$active_text}
  16. # 2. znt_env_nlist_coloring_pattern
  17. NLIST_COLORING_PATTERN=${znt_env_nlist_coloring_pattern:-$NLIST_COLORING_PATTERN}
  18. # 3. znt_env_nlist_coloring_color
  19. NLIST_COLORING_COLOR=${znt_env_nlist_coloring_color:-$NLIST_COLORING_COLOR}
  20. # 4. znt_env_nlist_coloring_match_multiple
  21. NLIST_COLORING_MATCH_MULTIPLE=${znt_env_nlist_coloring_match_multiple:-$NLIST_COLORING_MATCH_MULTIPLE}
  22. # 5. znt_env_keywords (array)
  23. if (( ${+znt_env_keywords} )); then
  24. keywords=( "${znt_env_keywords[@]}" )
  25. fi