Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix spelling and invalid trailing > #1

Merged
merged 1 commit into from
Apr 23, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion functions/zbnc_zsh_better_npm_completion_npx
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 1 addition & 2 deletions zsh-better-npm-completion.plugin.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -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