1 # How should be current element of the list drawn. Possible values: reverse,
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
7 # Colorize first number column and last path segment
8 # This doesn't cover scripts named "[0-9]## *", which should be very rare
9 # (#s) is ^, (#e) is $, # is *, ## is + (comparing to regex)
10 # | is alternative, but only in ()
11 local NLIST_COLORING_PATTERN="((#s) #[0-9]## |[[][^]]#](#e)|[^ 0-9/?\\\\][^/\\\\]#(#e))"
12 local NLIST_COLORING_COLOR=$'\x1b[00;33m'
13 local NLIST_COLORING_MATCH_MULTIPLE=1
15 # Search keywords, iterated with F2 or Ctrl-X or Ctrl-/
17 keywords=( "vim" "git" "git commit" "firefox" "mplayer" )
26 # Zshrc integration. All below variables can
27 # be set in zshrc and will have precedence
31 # 1. znt_kill_active_text
32 active_text=${znt_kill_active_text:-$active_text}
34 # 2. znt_kill_nlist_coloring_pattern
35 NLIST_COLORING_PATTERN=${znt_kill_nlist_coloring_pattern:-$NLIST_COLORING_PATTERN}
37 # 3. znt_kill_nlist_coloring_color
38 NLIST_COLORING_COLOR=${znt_kill_nlist_coloring_color:-$NLIST_COLORING_COLOR}
40 # 4. znt_kill_nlist_coloring_match_multiple
41 NLIST_COLORING_MATCH_MULTIPLE=${znt_kill_nlist_coloring_match_multiple:-$NLIST_COLORING_MATCH_MULTIPLE}
43 # 5. znt_kill_keywords (array)
44 if (( ${+znt_kill_keywords} )); then
45 keywords=( "${znt_kill_keywords[@]}" )