n-history.conf 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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=underline
  6. # Highlight a few keywords
  7. local NLIST_COLORING_PATTERN="(while|for |sudo|make|(#s)git|vim(#e)|vim |emacs(#e)|emacs )"
  8. local NLIST_COLORING_COLOR=$'\x1b[00;33m'
  9. local NLIST_COLORING_MATCH_MULTIPLE=1
  10. # Search keywords, iterated with F2 or Ctrl-X or Ctrl-/
  11. local -a keywords
  12. keywords=( "git" "vim" "mplayer" )
  13. #
  14. # Zshrc integration. All below variables can
  15. # be set in zshrc and will have precedence
  16. # over config files
  17. #
  18. # 1. znt_history_active_text
  19. active_text=${znt_history_active_text:-$active_text}
  20. # 2. znt_history_nlist_coloring_pattern
  21. NLIST_COLORING_PATTERN=${znt_history_nlist_coloring_pattern:-$NLIST_COLORING_PATTERN}
  22. # 3. znt_history_nlist_coloring_color
  23. NLIST_COLORING_COLOR=${znt_history_nlist_coloring_color:-$NLIST_COLORING_COLOR}
  24. # 4. znt_history_nlist_coloring_match_multiple
  25. NLIST_COLORING_MATCH_MULTIPLE=${znt_history_nlist_coloring_match_multiple:-$NLIST_COLORING_MATCH_MULTIPLE}
  26. # 5. znt_history_keywords (array)
  27. if (( ${+znt_history_keywords} )); then
  28. keywords=( "${znt_history_keywords[@]}" )
  29. fi