zsh:_conf: Set NULL_GLOB

This commit is contained in:
2025-04-29 11:35:41 +02:00
parent aafb9a5a3a
commit b2127ae3eb

View File

@@ -45,7 +45,7 @@ elif [ -z $w3 ]; then # second word to complete
# check if there are any files here # check if there are any files here
# eval "local $(echo $functions[conf] | grep CONF_PATTERNS= | sed -E 's/\$(\{?)1(\}?)/\$\1w1\2/g; s/^[ \t]*//')" # eval "local $(echo $functions[conf] | grep CONF_PATTERNS= | sed -E 's/\$(\{?)1(\}?)/\$\1w1\2/g; s/^[ \t]*//')"
# NOTE: requires GLOB_DOTS # NOTE: requires GLOB_DOTS
local exist=( *(-.) ) 2>/dev/null local exist=( *(-.N) ) 2>/dev/null
# complete (symlinks pointing to) files # complete (symlinks pointing to) files
[ -z "$exist" ] || _values "config:" *(-.) [ -z "$exist" ] || _values "config:" *(-.)