n-kill.conf 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. # Colorize first number column and last path segment
  7. # This doesn't cover scripts named "[0-9]## *", which should be very rare
  8. # (#s) is ^, (#e) is $, # is *, ## is + (comparing to regex)
  9. # | is alternative, but only in ()
  10. local NLIST_COLORING_PATTERN="((#s) #[0-9]## |[[][^]]#](#e)|[^ 0-9/?\\\\][^/\\\\]#(#e))"
  11. local NLIST_COLORING_COLOR=$'\x1b[00;33m'
  12. local NLIST_COLORING_MATCH_MULTIPLE=1
  13. # Search keywords, iterated with F2 or Ctrl-X or Ctrl-/
  14. local -a keywords
  15. keywords=( "vim" "git" "git commit" "firefox" "mplayer" )
  16. #
  17. # Zshrc integration. All below variables can
  18. # be set in zshrc and will have precedence
  19. # over config files
  20. #
  21. # 1. znt_kill_active_text
  22. active_text=${znt_kill_active_text:-$active_text}
  23. # 2. znt_kill_nlist_coloring_pattern
  24. NLIST_COLORING_PATTERN=${znt_kill_nlist_coloring_pattern:-$NLIST_COLORING_PATTERN}
  25. # 3. znt_kill_nlist_coloring_color
  26. NLIST_COLORING_COLOR=${znt_kill_nlist_coloring_color:-$NLIST_COLORING_COLOR}
  27. # 4. znt_kill_nlist_coloring_match_multiple
  28. NLIST_COLORING_MATCH_MULTIPLE=${znt_kill_nlist_coloring_match_multiple:-$NLIST_COLORING_MATCH_MULTIPLE}
  29. # 5. znt_kill_keywords (array)
  30. if (( ${+znt_kill_keywords} )); then
  31. keywords=( "${znt_kill_keywords[@]}" )
  32. fi