Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: acd440b5a9
Fetching contributors…

Cannot retrieve contributors at this time

executable file 15 lines (12 sloc) 0.307 kb
#!/usr/bin/env bash
set -e
COMMAND="$1"
if [ -z "$COMMAND" ]; then
echo "usage: sub completions COMMAND [arg1 arg2...]" >&2
exit 1
fi
COMMAND_PATH="$(command -v "sub-$COMMAND")"
if grep -i "^# provide sub completions" "$COMMAND_PATH" >/dev/null; then
shift
exec "$COMMAND_PATH" --complete "$@"
fi
Jump to Line
Something went wrong with that request. Please try again.