This commit is contained in:
cutemeli
2025-12-22 10:35:30 +00:00
parent 0bfc6c8425
commit 5ce7ca2c5d
38927 changed files with 0 additions and 4594700 deletions

View File

@@ -1,26 +0,0 @@
#!/usr/bin/env bash
# Usage: nodenv completions <command> [arg1 arg2...]
set -e
[ -n "$NODENV_DEBUG" ] && set -x
COMMAND="$1"
if [ -z "$COMMAND" ]; then
nodenv-help --usage completions >&2
exit 1
fi
# Provide nodenv completions
if [ "$COMMAND" = "--complete" ]; then
exec nodenv-commands
fi
COMMAND_PATH="$(command -v "nodenv-$COMMAND" || command -v "nodenv-sh-$COMMAND")"
# --help is provided automatically
echo --help
if grep -iE "^([#%]|--|//) provide nodenv completions" "$COMMAND_PATH" >/dev/null; then
shift
exec "$COMMAND_PATH" --complete "$@"
fi