Files
tmuxifier/libexec/tmuxifier-completions
2012-04-22 11:28:38 +01:00

16 lines
362 B
Bash
Executable File

#! /usr/bin/env bash
set -e
[ -n "$TMUXIFIER_DEBUG" ] && set -x
command="$1"
if [ -z "$command" ]; then
echo "Usage: tmuxifier completions COMMAND [arg1 arg2...]" >&2
exit 1
fi
command_path="$(command -v "tmuxifier-$command")"
if grep -i "^# provide tmuxifier completions" "$command_path" >/dev/null; then
shift
exec "$command_path" --complete "$@"
fi