Provide shell-completion for the completions command, cause why not?

This commit is contained in:
2012-04-22 19:36:07 +01:00
parent 2ba53640cd
commit b81bdde8bb

View File

@@ -2,6 +2,12 @@
set -e
[ -n "$TMUXIFIER_DEBUG" ] && set -x
# Provide tmuxifier completions
if [ "$1" == "--complete" ]; then
tmuxifier-commands
exit
fi
has-completions() {
grep -i "^# provide tmuxifier completions" "$1" >/dev/null
}