[zsh] reduce required argument count of path_prepend

This commit is contained in:
Dmytro Meleshko 2020-07-26 13:01:53 +03:00
parent da3ade69e0
commit 03c6fc9083
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ typeset -T PKG_CONFIG_PATH pkg_config_path ':'
export PKG_CONFIG_PATH PATH MANPATH
path_prepend() {
if (( $# < 2 )); then
if (( $# < 1 )); then
print >&2 "usage: $0 <var_name> <value...>"
return 1
fi