mirror of
https://github.com/rbenv/rbenv.git
synced 2024-12-29 13:15:42 +01:00
20 lines
361 B
Bash
Executable file
20 lines
361 B
Bash
Executable file
#!/usr/bin/env bash
|
|
# Summary: List existing rbenv shims
|
|
# Usage: rbenv shims [--short]
|
|
|
|
set -e
|
|
[ -n "$RBENV_DEBUG" ] && set -x
|
|
|
|
# Provide rbenv completions
|
|
if [ "$1" = "--complete" ]; then
|
|
echo --short
|
|
exit
|
|
fi
|
|
|
|
for command in "${RBENV_ROOT}/shims/"*; do
|
|
if [ "$1" = "--short" ]; then
|
|
echo "${command##*/}"
|
|
else
|
|
echo "$command"
|
|
fi
|
|
done | sort
|