Blame view

repos/robbyrussell/oh-my-zsh/plugins/zsh-navigation-tools/.config/znt/n-cd.conf 1.81 KB
7378b55de   mj   Squashed 'repos/r...
1
  # Hotlist
d9bebbb3c   mj   Squashed 'repos/r...
2
3
  # Can use e.g. $ZSH_VERSION, e.g. /usr/share/zsh/$ZSH_VERSION/functions
  local -a hotlist
7378b55de   mj   Squashed 'repos/r...
4
5
6
7
8
9
10
  hotlist=(
      ~/.config/znt
      /usr/share/zsh/site-functions
      /usr/share/zsh
      /usr/local/share/zsh/site-functions
      /usr/local/share/zsh
      /usr/local/bin
d9bebbb3c   mj   Squashed 'repos/r...
11
      /usr/lib
7378b55de   mj   Squashed 'repos/r...
12
13
14
15
16
17
18
  )
  
  # Suppress adding (to directory stack) directories visited by n-cd
  # Value 0 is the default (directories will be added to dirstack)
  local NCD_DONT_PUSHD=0
  
  # How should be current element of the list drawn. Possible values: reverse,
d9bebbb3c   mj   Squashed 'repos/r...
19
  # underline.
7378b55de   mj   Squashed 'repos/r...
20
  # On Linux virtual terminal this will be enforced to reverse (because of poor
d9bebbb3c   mj   Squashed 'repos/r...
21
22
  # underline support on that terminal). The same for screen/tmux.
  local active_text=reverse
7378b55de   mj   Squashed 'repos/r...
23
24
25
26
27
  
  # Colorize last segments of the paths
  # (#s) is ^, (#e) is $, # is *, ## is + (comparing to regex)
  local NLIST_COLORING_PATTERN="[a-zA-Z0-9 ._-]##/#(#e)"
  local NLIST_COLORING_COLOR=$'\x1b[00;33m'
d9bebbb3c   mj   Squashed 'repos/r...
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
  
  # Search keywords, iterated with F2 or Ctrl-X or Ctrl-/
  local -a keywords
  keywords=( "zsh" "local" "git" )
  
  
  
  
  
  
  
  #
  # Zshrc integration. All below variables can
  # be set in zshrc and will have precedence
  # over config files
  #
  
  # 1. znt_cd_hotlist (array)
  if (( ${+znt_cd_hotlist} )); then
      hotlist=( "${znt_cd_hotlist[@]}" )
  fi
  
  # 2. znt_cd_dont_pushd
  NCD_DONT_PUSHD=${znt_cd_dont_pushd:-$NCD_DONT_PUSHD}
  
  # 3. znt_cd_active_text
  active_text=${znt_cd_active_text:-$active_text}
  
  # 4. znt_cd_nlist_coloring_pattern
  NLIST_COLORING_PATTERN=${znt_cd_nlist_coloring_pattern:-$NLIST_COLORING_PATTERN}
  
  # 5. znt_cd_nlist_coloring_color
  NLIST_COLORING_COLOR=${znt_cd_nlist_coloring_color:-$NLIST_COLORING_COLOR}
  
  # 6. znt_cd_nlist_coloring_match_multiple
  NLIST_COLORING_MATCH_MULTIPLE=${znt_cd_nlist_coloring_match_multiple:-$NLIST_COLORING_MATCH_MULTIPLE}
  
  # 7. znt_cd_keywords (array)
  if (( ${+znt_cd_keywords} )); then
      keywords=( "${znt_cd_keywords[@]}" )
  fi