mirror of https://github.com/jenv/jenv.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
356 B
20 lines
356 B
#!/usr/bin/env bash |
|
# Summary: List existing jenv shims |
|
# Usage: jenv shims [--short] |
|
|
|
set -e |
|
[ -n "$JENV_DEBUG" ] && set -x |
|
|
|
# Provide jenv completions |
|
if [ "$1" = "--complete" ]; then |
|
echo --short |
|
exit |
|
fi |
|
|
|
for command in "${JENV_ROOT}/shims/"*; do |
|
if [ "$1" = "--short" ]; then |
|
echo "${command##*/}" |
|
else |
|
echo "$command" |
|
fi |
|
done | sort
|
|
|