Files
server/opt/psa/admin/plib/modules/nodejs/libexec/nodenv/nodenv-shims
2026-01-07 20:52:11 +01:00

23 lines
385 B
Bash
Executable File

#!/usr/bin/env bash
# Summary: List existing nodenv shims
# Usage: nodenv shims [--short]
set -e
[ -n "$NODENV_DEBUG" ] && set -x
# Provide nodenv completions
if [ "$1" = "--complete" ]; then
echo --short
exit
fi
shopt -s nullglob
for command in "${NODENV_ROOT}/shims/"*; do
if [ "$1" = "--short" ]; then
echo "${command##*/}"
else
echo "$command"
fi
done | sort