mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-19 02:02:32 +01:00
znt: update to v2.1.15
This commit is contained in:
parent
19769fded2
commit
e2d157d589
25 changed files with 1178 additions and 111 deletions
|
|
@ -1,6 +1,6 @@
|
|||
# Hotlist
|
||||
# Try to use $ZSH_VERSION, e.g. /usr/share/zsh/$ZSH_VERSION/functions
|
||||
local hotlist
|
||||
# Can use e.g. $ZSH_VERSION, e.g. /usr/share/zsh/$ZSH_VERSION/functions
|
||||
local -a hotlist
|
||||
hotlist=(
|
||||
~/.config/znt
|
||||
/usr/share/zsh/site-functions
|
||||
|
|
@ -8,6 +8,7 @@ hotlist=(
|
|||
/usr/local/share/zsh/site-functions
|
||||
/usr/local/share/zsh
|
||||
/usr/local/bin
|
||||
/usr/lib
|
||||
)
|
||||
|
||||
# Suppress adding (to directory stack) directories visited by n-cd
|
||||
|
|
@ -15,12 +16,53 @@ hotlist=(
|
|||
local NCD_DONT_PUSHD=0
|
||||
|
||||
# How should be current element of the list drawn. Possible values: reverse,
|
||||
# underline. Default (without option set) is reverse
|
||||
# underline.
|
||||
# On Linux virtual terminal this will be enforced to reverse (because of poor
|
||||
# underline support on that terminal)
|
||||
# local active_text=underline
|
||||
# underline support on that terminal). The same for screen/tmux.
|
||||
local active_text=reverse
|
||||
|
||||
# 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'
|
||||
|
||||
# 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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue