mirror of
https://github.com/jimeh/tmuxifier.git
synced 2026-02-19 01:46:40 +00:00
Initial commit
This commit is contained in:
15
libexec/tmuxifier-completions
Executable file
15
libexec/tmuxifier-completions
Executable file
@@ -0,0 +1,15 @@
|
||||
#! /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
|
||||
Reference in New Issue
Block a user