mirror of
https://github.com/jimeh/tmuxifier.git
synced 2026-02-19 09:56:39 +00:00
16 lines
362 B
Bash
Executable File
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
|