]> src.twobees.de Git - dotfiles.git/blob - stow/oh-my-zsh/.oh-my-zsh/plugins/zsh-navigation-tools/.config/znt/n-cd.conf
...
[dotfiles.git] / stow / oh-my-zsh / .oh-my-zsh / plugins / zsh-navigation-tools / .config / znt / n-cd.conf
1 # Hotlist
2 # Can use e.g. $ZSH_VERSION, e.g. /usr/share/zsh/$ZSH_VERSION/functions
3 local -a hotlist
4 hotlist=(
5     ~/.config/znt
6     /usr/share/zsh/site-functions
7     /usr/share/zsh
8     /usr/local/share/zsh/site-functions
9     /usr/local/share/zsh
10     /usr/local/bin
11     /usr/lib
12 )
13
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
17
18 # How should be current element of the list drawn. Possible values: reverse,
19 # underline.
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
23
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'
28
29 # Search keywords, iterated with F2 or Ctrl-X or Ctrl-/
30 local -a keywords
31 keywords=( "zsh" "local" "git" )
32
33
34
35
36
37
38
39 #
40 # Zshrc integration. All below variables can
41 # be set in zshrc and will have precedence
42 # over config files
43 #
44
45 # 1. znt_cd_hotlist (array)
46 if (( ${+znt_cd_hotlist} )); then
47     hotlist=( "${znt_cd_hotlist[@]}" )
48 fi
49
50 # 2. znt_cd_dont_pushd
51 NCD_DONT_PUSHD=${znt_cd_dont_pushd:-$NCD_DONT_PUSHD}
52
53 # 3. znt_cd_active_text
54 active_text=${znt_cd_active_text:-$active_text}
55
56 # 4. znt_cd_nlist_coloring_pattern
57 NLIST_COLORING_PATTERN=${znt_cd_nlist_coloring_pattern:-$NLIST_COLORING_PATTERN}
58
59 # 5. znt_cd_nlist_coloring_color
60 NLIST_COLORING_COLOR=${znt_cd_nlist_coloring_color:-$NLIST_COLORING_COLOR}
61
62 # 6. znt_cd_nlist_coloring_match_multiple
63 NLIST_COLORING_MATCH_MULTIPLE=${znt_cd_nlist_coloring_match_multiple:-$NLIST_COLORING_MATCH_MULTIPLE}
64
65 # 7. znt_cd_keywords (array)
66 if (( ${+znt_cd_keywords} )); then
67     keywords=( "${znt_cd_keywords[@]}" )
68 fi