2 # Can use e.g. $ZSH_VERSION, e.g. /usr/share/zsh/$ZSH_VERSION/functions
6 /usr/share/zsh/site-functions
8 /usr/local/share/zsh/site-functions
14 # Suppress adding (to directory stack) directories visited by n-cd
15 # Value 0 is the default (directories will be added to dirstack)
16 local NCD_DONT_PUSHD=0
18 # How should be current element of the list drawn. Possible values: reverse,
20 # On Linux virtual terminal this will be enforced to reverse (because of poor
21 # underline support on that terminal). The same for screen/tmux.
22 local active_text=reverse
24 # Colorize last segments of the paths
25 # (#s) is ^, (#e) is $, # is *, ## is + (comparing to regex)
26 local NLIST_COLORING_PATTERN="[a-zA-Z0-9 ._-]##/#(#e)"
27 local NLIST_COLORING_COLOR=$'\x1b[00;33m'
29 # Search keywords, iterated with F2 or Ctrl-X or Ctrl-/
31 keywords=( "zsh" "local" "git" )
40 # Zshrc integration. All below variables can
41 # be set in zshrc and will have precedence
45 # 1. znt_cd_hotlist (array)
46 if (( ${+znt_cd_hotlist} )); then
47 hotlist=( "${znt_cd_hotlist[@]}" )
50 # 2. znt_cd_dont_pushd
51 NCD_DONT_PUSHD=${znt_cd_dont_pushd:-$NCD_DONT_PUSHD}
53 # 3. znt_cd_active_text
54 active_text=${znt_cd_active_text:-$active_text}
56 # 4. znt_cd_nlist_coloring_pattern
57 NLIST_COLORING_PATTERN=${znt_cd_nlist_coloring_pattern:-$NLIST_COLORING_PATTERN}
59 # 5. znt_cd_nlist_coloring_color
60 NLIST_COLORING_COLOR=${znt_cd_nlist_coloring_color:-$NLIST_COLORING_COLOR}
62 # 6. znt_cd_nlist_coloring_match_multiple
63 NLIST_COLORING_MATCH_MULTIPLE=${znt_cd_nlist_coloring_match_multiple:-$NLIST_COLORING_MATCH_MULTIPLE}
65 # 7. znt_cd_keywords (array)
66 if (( ${+znt_cd_keywords} )); then
67 keywords=( "${znt_cd_keywords[@]}" )