diff --git a/functions/zbnc_npx_list_excuteables b/functions/zbnc_npx_list_executables similarity index 87% rename from functions/zbnc_npx_list_excuteables rename to functions/zbnc_npx_list_executables index 0fb5014..274cfab 100644 --- a/functions/zbnc_npx_list_excuteables +++ b/functions/zbnc_npx_list_executables @@ -3,7 +3,7 @@ local node_modules="$(dirname package_json)/node_modules" local bindir="$node_modules/.bin" # Return if there's no node_modules -[[ ! -e "$node_modules" ]] && return> +[[ ! -e "$node_modules" ]] && return # Return if there's no .bin in node_modules [[ ! -e "$bindir" ]] && return diff --git a/functions/zbnc_zsh_better_npm_completion_npx b/functions/zbnc_zsh_better_npm_completion_npx index d5d2cc5..6e17085 100644 --- a/functions/zbnc_zsh_better_npm_completion_npx +++ b/functions/zbnc_zsh_better_npm_completion_npx @@ -3,7 +3,7 @@ local package_json="$(zbnc_recursively_look_for package.json)" # Return if we can't find package.json [[ "$package_json" = "" ]] && return -_values $(zbnc_npx_list_excuteables "$package_json") +_values $(zbnc_npx_list_executables "$package_json") # Make sure we don't run default completion custom_completion=true diff --git a/zsh-better-npm-completion.plugin.zsh b/zsh-better-npm-completion.plugin.zsh index 67add6c..ef6eb04 100644 --- a/zsh-better-npm-completion.plugin.zsh +++ b/zsh-better-npm-completion.plugin.zsh @@ -23,8 +23,7 @@ autoload -Uz \ zbnc_recursively_look_for \ zbnc_zsh_better_npm_completion \ zbnc_zsh_better_npm_completion_npx \ - zbnc_npx_list_excuteables - + zbnc_npx_list_executables compdef zbnc_zsh_better_npm_completion npm compdef zbnc_zsh_better_npm_completion_npx npx